/* ==========================================================================
   Syrune — design system
   Colours and type are taken from the reference mocks: a warm off-white page,
   a high-contrast Garamond-family display face, and a two-stop gradient that
   runs warm tan -> soft blue, which is also the Mote / Haze identity pair.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  /* surfaces */
  --bg:          #faf8f4;
  --bg-alt:      #f4efe6;
  --bg-input:    #f7f3ea;
  --line:        #e6ded2;
  --line-soft:   #efe8dc;

  /* ink */
  --ink:         #5c3d2e;   /* warm brown, headings */
  --ink-mid:     #7a5c48;
  --ink-muted:   #9c8674;
  --ink-faint:   #b9a795;

  /* identity pair */
  --mote:        #d4ab86;   /* warm tan */
  --mote-deep:   #c09268;
  --haze:        #a3bbd6;   /* soft blue */
  --haze-deep:   #87a5c6;

  /* the Syrune gradient */
  --grad-a:      #cdbda6;
  --grad-b:      #a9bdd6;

  /* type */
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Spectral', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.16, .84, .32, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

::selection { background: #e8dccb; color: var(--ink); }

/* ------------------------------------------------------------------ shell -- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap--narrow { max-width: 640px; }

/* ------------------------------------------------------------- top nav ---- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  /* The landing view is just the wordmark, so the bar stays out of the way
     until the hero is behind you. */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease),
              border-color .4s var(--ease), padding .4s var(--ease);
}
.nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.nav.is-scrolled {
  padding: 16px 40px;
  border-bottom-color: var(--line-soft);
}
/* Pages that open below the fold show the bar immediately. */
.nav.is-scrolled:not(.is-visible) { opacity: 0; }
.nav.is-scrolled.is-visible,
.nav--always { opacity: 1; pointer-events: auto; transform: none; }

.nav__mark {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .01em;
  background: linear-gradient(96deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  gap: 34px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--ink-muted);
}
.nav__links a { transition: color .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }

/* --------------------------------------------------------------- hero ----- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  /* Two children would otherwise create two rows that stretch to fill the
     viewport, pushing the wordmark and its subtitle to opposite ends. */
  align-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero__word {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 1;
  letter-spacing: -0.012em;
  background: linear-gradient(96deg, var(--grad-a) 6%, var(--grad-b) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.hero__sub {
  margin: 34px 0 0;
  font-family: var(--body);
  font-size: clamp(10.5px, .95vw, 13px);
  font-weight: 500;
  letter-spacing: .44em;
  /* letter-spacing adds a trailing gap on the last glyph, which pushes
     wide-tracked centred text off-centre; indent by the same amount. */
  text-indent: .44em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* an understated scroll hint */
.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: nudge 2.6s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { opacity: .5; transform: translate(-50%, 0); }
  50%      { opacity: .9; transform: translate(-50%, 7px); }
}

/* --------------------------------------------------------------- models --- */

.models {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px;
}

.models__list {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}

.model-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--mote);
  transition: transform .5s var(--ease), letter-spacing .5s var(--ease), opacity .5s var(--ease);
}
.model-link--haze { color: var(--haze); }

.model-link__dot {
  font-size: .5em;
  transform: translateY(-.28em);
  opacity: .65;
}

/* Out of flow so the wordmark stays optically centred, and hidden until hover
   so the resting state is just "· Mote" / "· Haze", as designed. */
.model-link__meta {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: .55em;
  font-family: var(--body);
  font-size: 13px;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--ink-faint);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.model-link:hover {
  letter-spacing: .01em;
  transform: translateX(6px);
}
.model-link:hover .model-link__dot  { opacity: 1; }
.model-link:hover .model-link__meta { opacity: 1; }

.model-link.is-soon { cursor: default; }
.model-link.is-soon:hover { transform: none; letter-spacing: -0.005em; }

/* Touch devices never hover, so the detail must be visible from the start. */
@media (hover: none) {
  .model-link__meta { position: static; opacity: 1; margin-left: .5em; }
}

/* ---------------------------------------------------------- reveal anim --- */
/* Elements start offset and fade in when scrolled into view. Direction is set
   per element so the two models can come in from opposite sides. */
[data-reveal] {
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(34px); }
[data-reveal="left"]  { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal].is-in   { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__hint   { animation: none; }
  html          { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- model page ---- */

.intro {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 90px;
  background:
    radial-gradient(120% 78% at 50% 0%, #fdfbf7 0%, var(--bg) 46%, var(--bg-alt) 100%);
}

.intro__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.intro__lede {
  margin: 26px auto 0;
  max-width: 30em;
  font-family: var(--display);
  font-size: clamp(15px, 1.35vw, 19px);
  font-style: italic;
  line-height: 1.62;
  color: var(--ink-mid);
}

.eyebrow {
  display: block;
  margin: 34px 0 0;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.intro__figure {
  margin: 54px auto 0;
  width: min(100%, 760px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 2px 5px rgba(92, 61, 46, .05),
    0 18px 48px -14px rgba(92, 61, 46, .22),
    0 44px 90px -40px rgba(92, 61, 46, .3);
  background: #e9e2d4;
}
/* Honour each image's own shape. Forcing a square-ish ratio crops a landscape
   photograph into something that reads as portrait, which is not the intent. */
.intro__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--figure-ratio, 3 / 2);
  object-fit: cover;
}
.intro--wide .intro__figure img { --figure-ratio: 16 / 9; }

.intro__scroll {
  margin-top: 60px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- stats ---- */

.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 92px 24px;
}

.stats__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(40px, 9vw, 130px);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--ink);
  font-variant-numeric: oldstyle-nums;
}

.stat__label {
  display: block;
  margin-top: 12px;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------- section ---- */

.section { padding: 108px 24px; }
.section--tight { padding: 84px 24px; }

.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.008em;
  margin: 0;
  color: var(--ink);
  text-align: center;
}

.section__lede {
  margin: 20px auto 0;
  max-width: 34em;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.64;
  color: var(--ink-mid);
}

.rule {
  width: 78px;
  height: 1px;
  margin: 34px auto 0;
  background: var(--line);
  border: 0;
}

/* feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 44px 40px;
  margin-top: 68px;
}

.feature__title {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  margin: 0 0 9px;
  color: var(--ink);
}

.feature__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-mid);
}

/* honest table */
.table-wrap { overflow-x: auto; margin-top: 46px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  font-size: 15px;
}

th, td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

th {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: var(--line);
}

td:first-child { color: var(--ink); }
td { color: var(--ink-mid); font-variant-numeric: oldstyle-nums; }
td.is-good { color: var(--ink); font-weight: 500; }

.note {
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-faint);
  font-style: italic;
}

/* run-it block */
pre, code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

pre {
  background: var(--bg-input);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-mid);
  margin: 14px 0 0;
}
pre .c { color: var(--ink-faint); }

/* --------------------------------------------------------------- form ----- */

.form { margin-top: 44px; display: grid; gap: 15px; }

.field {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px 18px;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
}

.field::placeholder { color: var(--ink-faint); }

.field:focus {
  outline: none;
  background: #fdfbf6;
  border-color: var(--mote);
  box-shadow: 0 0 0 3px rgba(212, 171, 134, .16);
}

textarea.field { min-height: 132px; resize: vertical; line-height: 1.7; }

.btn {
  justify-self: center;
  margin-top: 15px;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px 40px;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover:not(:disabled) {
  background: #fdfbf6;
  border-color: var(--mote);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn:disabled { opacity: .5; cursor: default; }

.form__status {
  margin: 4px 0 0;
  min-height: 1.4em;
  text-align: center;
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-faint);
}
.form__status.is-ok  { color: #6d8a63; }
.form__status.is-err { color: #b4675a; }

/* -------------------------------------------------------------- footer ---- */

.footer {
  padding: 58px 24px 46px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
}

.footer__copy {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

.footer__links {
  margin: 16px 0 0;
  display: flex;
  gap: 26px;
  justify-content: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink-muted);
}
.footer__links a:hover { color: var(--ink); }

/* --------------------------------------------------------------- 404 ------ */

.center-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px;
}

/* ---------------------------------------------------------- responsive ---- */

@media (max-width: 760px) {
  .nav { padding: 20px 22px; }
  .nav.is-scrolled { padding: 13px 22px; }
  .nav__links { gap: 20px; font-size: 15px; }

  .wrap { padding: 0 22px; }
  .section { padding: 78px 22px; }
  .stats { padding: 66px 22px; }

  .model-link { flex-direction: column; align-items: center; gap: .1em; }
  .model-link:hover { transform: none; }
  .model-link__meta { position: static; opacity: 1; margin: .4em 0 0; transform: none; }
}

/* ------------------------------------------------------- table states ----- */

td.is-pending {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 14px;
}

/* ----------------------------------------------------- Haze palette ------- */
/* Same system, shifted cool, so the two models read as a set rather than two
   unrelated sites. Only the tokens change; no component is redefined. */

.theme-haze {
  --bg:        #f7f8fa;
  --bg-alt:    #eef1f5;
  --bg-input:  #f3f5f8;
  --line:      #dde3ea;
  --line-soft: #e7ecf1;

  --ink:       #2f3d4c;
  --ink-mid:   #55677a;
  --ink-muted: #7d8fa2;
  --ink-faint: #a3b2c1;
}

.theme-haze .intro {
  background: radial-gradient(120% 78% at 50% 0%, #fbfcfd 0%, var(--bg) 46%, var(--bg-alt) 100%);
}
.theme-haze .intro__figure { background: #dde4ec; }
.theme-haze ::selection    { background: #dbe5ef; }
.theme-haze .field:focus {
  border-color: var(--haze);
  box-shadow: 0 0 0 3px rgba(163, 187, 214, .22);
}
.theme-haze .btn:hover:not(:disabled) { border-color: var(--haze); }
