/* ==========================================================================
   AN CREATIVE — Base Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Italiana&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-tram-brown);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-amber-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-hover); }

img { max-width: 100%; height: auto; display: block; }

textarea, input, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-linen-cream); }
::-webkit-scrollbar-thumb {
  background: var(--color-soft-clay);
  border-radius: var(--radius-full);
}

/* Selection */
::selection {
  background: rgba(200, 150, 62, 0.2);
  color: var(--color-tram-brown);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-header__logo {
  width: 36px;
  height: 36px;
  background: var(--color-tram-brown);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm-ivory);
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: 700;
}

.app-header__title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-tram-brown);
}

.app-header__subtitle {
  font-size: var(--text-xs);
  color: var(--color-smoke-grey);
  margin-top: -2px;
}

.app-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-8);
}

.app-footer {
  padding: var(--space-4) var(--space-8);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-smoke-grey);
  border-top: 1px solid var(--color-border);
}
