/* Shared site foundation: imported after each page's local styles. */
:root {
  --site-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --site-font-serif: 'Lora', serif;
  --site-bg: #FAF9F6;
  --site-surface: #FFFFFF;
  --site-ink: #1A1917;
  --site-body: #4A4945;
  --site-muted: #6D6B66;
  --site-border: #EBE8E3;
  --site-border-strong: #DDD9D2;
  --site-accent: #B84F2D;
  --site-accent-soft: #FDF0EB;
  --site-radius-sm: 6px;
  --site-radius-md: 8px;
  --site-radius-lg: 12px;
  --site-radius-full: 9999px;
  --site-shadow-sm: 0 1px 2px rgba(26, 25, 23, .04);
  --site-shadow-md: 0 1px 3px rgba(26, 25, 23, .04), 0 4px 12px rgba(26, 25, 23, .04);
  --bg: var(--site-bg);
  --surface: var(--site-surface);
  --paper: var(--site-surface);
  --ink: var(--site-ink);
  --body: var(--site-body);
  --muted: var(--site-muted);
  --border: var(--site-border);
  --border-strong: var(--site-border-strong);
  --strong: var(--site-border-strong);
  --accent: var(--site-accent);
  --accent-soft: var(--site-accent-soft);
  --radius-sm: var(--site-radius-sm);
  --radius-md: var(--site-radius-md);
  --radius-lg: var(--site-radius-lg);
  --radius-full: var(--site-radius-full);
  --r: var(--site-radius-lg);
  --shadow-sm: var(--site-shadow-sm);
  --shadow-md: var(--site-shadow-md);
}

body {
  font-family: var(--site-font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Header, logo and navigation */
header {
  height: 64px;
  background: rgba(250, 249, 246, .92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

header .container { align-items: center; }

.logo-area,
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area .logo-mark,
.logo img {
  width: 38px;
  height: 38px;
  transform-origin: center;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.logo-area:hover .logo-mark,
.logo-area:focus-visible .logo-mark,
.logo:hover img,
.logo:focus-visible img {
  transform: rotate(180deg);
}

.logo-wordmark,
.logo > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.logo-wordmark-main,
.logo b {
  font-family: var(--site-font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.logo-wordmark-sub,
.logo small {
  display: block;
  font-family: var(--site-font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
}

.nav-links,
.nav {
  gap: 24px;
}

.nav-link,
.nav a {
  font-family: var(--site-font-sans);
  font-size: 13px;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .logo-area:hover .logo-mark,
  .logo-area:focus-visible .logo-mark,
  .logo:hover img,
  .logo:focus-visible img {
    transform: none;
  }
}

/* Breadcrumb */
.breadcrumb,
.crumb {
  padding: 12px 0 0;
  font-family: var(--site-font-sans);
  font-size: 13px;
  font-weight: 400;
}

.breadcrumb .current,
.crumb .current {
  color: var(--site-body);
  font-weight: 500;
}

/* Hero typography */
.hero h1,
.name-hero h1 {
  font-family: var(--site-font-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.hero,
.name-hero { padding-top: 48px; }

.eyebrow,
.hero-eyebrow { margin-bottom: 12px; }

.hero .subtitle,
.name-hero .subtitle,
.intro {
  font-family: var(--site-font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

.slogan {
  font-family: var(--site-font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

/* Generator control typography */
.settings-title,
.panel h2 {
  font-family: var(--site-font-sans);
  font-size: 18px;
  font-weight: 600;
}

.settings-desc,
.panel .hint {
  font-family: var(--site-font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.input-label,
.field label,
.control-label,
.preset-label {
  font-family: var(--site-font-sans);
  font-size: 13px;
  font-weight: 600;
}

.input-helper,
.helper {
  font-family: var(--site-font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.input-field,
.field input,
.field select,
.control-select {
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-md);
  background-color: var(--site-surface);
  font-family: var(--site-font-sans);
  font-size: 18px;
}

.input-field:focus,
.field input:focus,
.field select:focus,
.control-select:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 2px var(--site-accent-soft);
}

.segmented button,
.seg button,
.preset-btn,
.chip,
.choice,
.view-tabs button {
  font-family: var(--site-font-sans);
}

.segmented,
.seg,
.flip-segmented {
  padding: 4px;
  border-radius: var(--site-radius-md);
}

.segmented button,
.seg button,
.flip-segmented button {
  min-height: 40px;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 500;
}

.segmented button.active,
.seg button.active,
.flip-segmented button.active { font-weight: 600; }

.preset-btn,
.chip {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: var(--site-radius-full);
  font-size: 13px;
  font-weight: 500;
}

.choice,
.view-tabs button {
  min-height: 40px;
  padding: 10px 8px;
  border-radius: var(--site-radius-md);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav-toggle { display: grid; place-items: center; }

  .nav-links,
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 10px 24px;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(250, 249, 246, .98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md, var(--shadow));
  }

  .nav-links.open,
  .nav.open { display: flex; }

  .nav-link,
  .nav a {
    padding: 11px 0 !important;
    font-size: 14px !important;
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-child,
  .nav a:last-child { border-bottom: 0; }

  .hero h1,
  .name-hero h1 { font-size: 34px; }

  .preset-btn,
  .chip { min-height: 44px; padding: 10px 14px; }
}

@media (max-width: 540px) {
  .nav-links,
  .nav { padding-left: 16px; padding-right: 16px; }

  .hero h1,
  .name-hero h1 { font-size: 32px; }
}
