/* GoDragon Studios landing page
   Direction: Ink & Parchment (light). Palette lives in custom properties so a
   future dark theme is a variable swap, not a rewrite. */

:root {
  --paper: #f4eee1;
  --paper-soft: #efe7d6;
  --ink: #211b14;
  --ink-strong: #100c08;
  --ink-soft: #5b5142;
  --ink-faint: #8a8170;
  --line: #d8cdb8;
  --line-soft: #e3dac8;
  --seal: #9c3526;
  --seal-deep: #7e2a1f;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --edge: 18px;
  --gutter: 48px;
  --maxw: 1140px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
}

/* Printed-page frame */
.frame {
  position: fixed;
  inset: var(--edge);
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 5;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 0;
}
.mark {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
}
.mark-seal {
  width: 44px;
  height: 44px;
  flex: none;
}
.mark-seal svg {
  display: block;
  width: 100%;
  height: 100%;
}
.mark-word {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.mark-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.01em;
}
.mark-sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav .nav-flag {
  color: var(--seal);
  font-weight: 500;
}
.site-nav .nav-flag:hover {
  color: var(--seal-deep);
}

/* Hero */
.hero {
  padding: 116px 0 96px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--seal);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--seal);
  opacity: 0.7;
}
h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 30px;
  max-width: 17ch;
}
h1 em {
  font-style: italic;
  color: var(--seal);
  font-weight: 400;
}
.lede {
  margin-top: 34px;
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 2px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

/* Flagship */
.flagship {
  padding: 28px 0 110px;
  scroll-margin-top: 40px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.01em;
}
.section-intro {
  max-width: 50ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 17px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--paper);
  padding: 34px 30px 40px;
}
.pillar-idx {
  font-family: var(--display);
  font-size: 14px;
  color: var(--seal);
  letter-spacing: 0.1em;
}
.pillar h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 18px 0 12px;
}
.pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Closing */
.closing {
  border-top: 1px solid var(--line);
  padding: 70px 0 90px;
  scroll-margin-top: 40px;
}
.closing-line {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.closing-by {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 56px;
}
.footer-copy,
.footer-meta {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.footer-meta {
  letter-spacing: 0.06em;
}

/* Motion: smooth scroll and a quiet entrance, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .hero > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }
  .hero > *:nth-child(1) { animation-delay: 0.04s; }
  .hero > *:nth-child(2) { animation-delay: 0.12s; }
  .hero > *:nth-child(3) { animation-delay: 0.2s; }
  .hero > *:nth-child(4) { animation-delay: 0.28s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Responsive */
@media (max-width: 860px) {
  :root {
    --gutter: 30px;
    --edge: 12px;
  }
  .hero {
    padding: 80px 0 72px;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .site-nav {
    gap: 22px;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .lede {
    font-size: 17px;
  }
  .hero-actions {
    gap: 12px;
  }
  .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
