/* Synaxis — site stylesheet */

:root {
  --bg: #2b231b;
  --bg-raised: #332a21;
  --bg-panel: #382e24;
  --ink: #ece3d2;
  --ink-muted: #baab96;
  --ink-faint: #8d7f6c;
  --gold: #c9a768;
  --gold-soft: rgba(201, 167, 104, 0.4);
  --gold-faint: rgba(201, 167, 104, 0.16);
  --btn-fill: #b3925a;
  --btn-fill-hover: #c2a069;
  --btn-ink: #241a0c;
  --red: #8e2f2f;
  --serif: "Linux Libertine", "EB Garamond", Garamond, "Times New Roman", serif;
  --radius: 18px;
}

@font-face {
  font-family: "Dihjauti";
  src: url("fonts/Dihjauti-wordmark.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Linux Libertine";
  src: url("fonts/LinLibertine_R.ttf") format("truetype");
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: #ddbe7f; }

::selection { background: var(--gold-soft); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top store bar ---------- */

.store-bar {
  border-bottom: 1px solid var(--gold-faint);
  background: #241d16;
}

.store-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.store-btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

.store-btn:hover { border-color: var(--gold); background: var(--gold-faint); color: var(--ink); }

.store-btn.soon {
  border-color: rgba(186, 171, 150, 0.25);
  color: var(--ink-faint);
  cursor: default;
}
.store-btn.soon:hover { background: none; border-color: rgba(186, 171, 150, 0.25); color: var(--ink-faint); }

.store-btn .badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid rgba(186, 171, 150, 0.3);
  border-radius: 999px;
  padding: 1px 7px;
}

.store-btn.web {
  border: none;
  background: var(--btn-fill);
  color: var(--btn-ink);
  font-weight: 600;
}
.store-btn.web .badge { color: #4a3919; border-color: rgba(36, 26, 12, 0.35); }
.store-btn.web:hover { background: var(--btn-fill-hover); color: var(--btn-ink); }

/* ---------- Nav ---------- */

.nav { padding: 22px 0; }

.nav .wrap { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand span {
  font-family: "Dihjauti", var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.nav-links { margin-left: auto; display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-muted);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.nav-links a:hover { color: var(--gold); }

/* ---------- Ornament divider ---------- */

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 0 auto;
  max-width: 420px;
  color: var(--gold-soft);
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.ornament svg { width: 26px; height: 26px; flex: none; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 40px; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero .lede {
  margin-top: 22px;
  font-size: 1.35rem;
  color: var(--ink-muted);
  max-width: 34em;
}

.hero .cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--btn-fill);
  color: var(--btn-ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.btn-primary:hover { background: var(--btn-fill-hover); color: var(--btn-ink); }

.btn-ghost {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-faint); color: var(--ink); }

.hero-shot {
  position: relative;
  height: 600px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 167, 104, 0.3);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--serif);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.section-intro {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.section-intro p { margin-top: 18px; color: var(--ink-muted); font-size: 1.25rem; }

/* Alternating feature rows */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature + .feature { margin-top: 96px; }

.feature.flip .feature-media { order: 2; }

.feature-copy p { margin-top: 18px; color: var(--ink-muted); font-size: 1.22rem; }

.feature-media { position: relative; }

.shot {
  border-radius: var(--radius);
  border: 1px solid rgba(201, 167, 104, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  background: var(--bg-raised);
}

.shot img { width: 100%; }

/* Cropped variants: fixed-height windows onto tall screenshots */
.shot.crop { height: 460px; }
.shot.crop img { height: 100%; object-fit: cover; }
.shot.crop.from-top img { object-position: top; }
.shot.crop.from-right img { object-position: right top; }
.shot.crop.from-center img { object-position: center 22%; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.shot.compact { max-width: 440px; margin: 0 auto; }

.caption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--ink-faint);
  font-style: italic;
  text-align: center;
}

/* ---------- Manuscript band ---------- */

.band {
  background: #241d16;
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
}

.manuscript-pair {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.manuscript-pair .shot { height: 430px; }
.manuscript-pair .shot img { height: 100%; width: 100%; object-fit: cover; object-position: center top; }

/* ---------- Presenter band ---------- */

.presenter-wide { margin-top: 56px; }
.presenter-wide .shot { border-radius: 22px; }

.presenter-detail {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- Languages ---------- */

.lang-table-holder {
  margin-top: 52px;
  border: 1px solid var(--gold-faint);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--bg-raised);
}

table.lang { width: 100%; border-collapse: collapse; min-width: 560px; }

table.lang th, table.lang td {
  text-align: left;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(200, 164, 92, 0.1);
  font-size: 1.1rem;
}

table.lang th {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
}

table.lang tr:last-child td { border-bottom: none; }

table.lang td:first-child { white-space: nowrap; font-weight: 600; }
table.lang td:last-child { color: var(--ink-muted); }

.lang-note {
  margin-top: 36px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 1.2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Closing CTA ---------- */

.closing { text-align: center; }
.closing .cta-row { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--gold-faint);
  padding: 40px 0 30px;
  font-size: 1rem;
  color: var(--ink-muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; opacity: 0.85; }
.footer-brand span { font-variant: small-caps; letter-spacing: 0.14em; }

.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-muted); }
.footer-links a:hover { color: var(--gold); }

.footer-labs {
  margin-top: 26px;
  text-align: center;
  font-size: 0.72rem;
  color: #55493a;
}
.footer-labs a { color: #62543f; }
.footer-labs a:hover { color: var(--ink-faint); }

/* ---------- Contact page ---------- */

.contact-page { padding: 72px 0 96px; }

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

.contact-copy p { margin-top: 18px; color: var(--ink-muted); font-size: 1.22rem; }

.contact-copy ul {
  margin-top: 18px;
  list-style: none;
}
.contact-copy li {
  padding-left: 26px;
  position: relative;
  margin-top: 10px;
  color: var(--ink-muted);
}
.contact-copy li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8em;
  top: 0.3em;
}

.contact-form {
  background: var(--bg-raised);
  border: 1px solid var(--gold-faint);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(200, 164, 92, 0.25);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 12px 14px;
  margin-bottom: 24px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-faint);
}

.contact-form button {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  section { padding: 64px 0; }

  .hero .wrap,
  .feature,
  .presenter-detail,
  .manuscript-pair,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature.flip .feature-media { order: 0; }

  .feature + .feature { margin-top: 72px; }

  .nav-links { display: none; }
  .nav .wrap { justify-content: center; }

  .shot.crop, .manuscript-pair .shot { height: 380px; }
  .hero-shot { height: 460px; }
}

@media (max-width: 560px) {
  body { font-size: 1.1rem; }
  .duo { grid-template-columns: 1fr; }
  .store-bar .wrap { gap: 7px; }
  .store-btn { padding: 6px 13px; font-size: 0.85rem; }
  .shot.crop, .manuscript-pair .shot { height: 320px; }
}
