/* Freydís Gaming Studios — site.css
   One stylesheet for every page. Colours and fonts are defined once below. */

/* ---------- Fonts (self-hosted, SIL Open Font License, see assets/fonts/) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --black: #0A0A0A;
  --char-1: #141414;
  --char-2: #1C1C1C;
  --line: #2A2622;
  --bronze: #B08D57;
  --bronze-hi: #C9A56B;
  --bronze-lo: #7A5C33;
  --bone: #E8E2D6;
  --bone-dim: #B3AC9F;     /* body copy on charcoal, AA contrast */
  --moss: #4B5243;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --space: clamp(72px, 10vw, 128px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* HOME HERO IMAGE — swap the emblem here in one edit (e.g. a cropped version). */
  --hero-image: url("../img/brand/freydis-gaming-studios-logo-720.webp");

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 3px; border-radius: var(--radius); }
::selection { background: var(--bronze-lo); color: var(--bone); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--bone); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
p { margin: 0 0 1.1em; color: var(--bone-dim); max-width: 64ch; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: var(--bone); }
.eyebrow { font: 500 .78rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin: 0 0 1.1em; }
strong { color: var(--bone); font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--alt { background: var(--char-1); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bronze); color: var(--black); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.5em;
  font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--bronze); border-radius: var(--radius);
  color: var(--bone); background: transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--bronze); color: var(--black); }
.btn--solid { background: var(--bronze); color: var(--black); }
.btn--solid:hover { background: var(--bronze-hi); border-color: var(--bronze-hi); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand img { width: auto; height: 30px; mix-blend-mode: lighten; } /* hides the PNG's black box; the mark itself is untouched */
.brand span { font: 500 .72rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--bone-dim); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--bone-dim); text-decoration: none; font: 500 .85rem/1 var(--sans); letter-spacing: .08em; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--bronze); }
.nav .btn { min-height: 40px; padding: .7em 1.2em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--bone); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 16px; min-height: 48px; }
  .brand span { display: none; }
}
@media (min-width: 400px) and (max-width: 860px) { .brand span { display: inline; } }

/* ---------- Divider motif: thin bronze line with a small diamond ---------- */
.divider { display: flex; align-items: center; gap: 14px; max-width: 280px; margin: 0 auto; color: var(--bronze); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze-lo)); }
.divider::after { background: linear-gradient(90deg, var(--bronze-lo), transparent); }
.divider i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--bronze); flex: none; }
.divider--left { margin: 0 0 1.6rem; max-width: 140px; }
.divider--left::before { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); background: radial-gradient(120% 90% at 78% 40%, #1d1712 0%, var(--black) 62%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; background: var(--hero-image) center / contain no-repeat; }
/* lighten blend drops the logo PNG's black square into the page background; the mark itself is untouched */
.hero-art, .emblem-frame img, .footer-top img { mix-blend-mode: lighten; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 34ch; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; justify-self: center; margin-bottom: 8px; }
  .hero .text { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- Intro statement ---------- */
.statement { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.3; color: var(--bone); max-width: 36ch; margin: 0 auto; text-align: center; text-wrap: balance; }

/* ---------- Game cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: 3rem; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; } }
.card {
  display: flex; flex-direction: column;
  background: var(--char-2); border: 1px solid var(--bronze-lo); border-radius: var(--radius);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--bronze); box-shadow: 0 18px 40px -20px rgba(0,0,0,.9); }
.card .shot { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--bronze-lo); background: var(--char-1); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card h3 { margin-bottom: .2em; }
.card .genre { font: 500 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 1rem; }
.card p { font-size: .98rem; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Screenshot pending frame — used only when no real gameplay image exists. Never mock gameplay. */
.shot--pending { display: grid; place-items: center; font: 600 .78rem/1 var(--sans); letter-spacing: .22em; color: var(--bronze); background: repeating-linear-gradient(45deg, var(--char-1) 0 14px, #171513 14px 28px); }

/* ---------- Offer / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 3rem; }
.pillars--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .pillars, .pillars--4 { grid-template-columns: 1fr; } }
.pillar { border-top: 1px solid var(--bronze-lo); padding-top: 22px; }
.pillar .num { font: 500 .78rem/1 var(--sans); letter-spacing: .2em; color: var(--bronze); display: block; margin-bottom: 14px; }
.pillar h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }

/* ---------- Split layout (studio snapshot, name story) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--wide-text { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: 1fr; } }
.emblem-frame { max-width: 420px; margin: 0 auto; }
.emblem-frame img { width: 100%; }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: var(--space) 0; background: linear-gradient(180deg, var(--black), #15110d 50%, var(--black)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta p { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.25; color: var(--bone); max-width: 26ch; margin: 0 auto 1.6rem; text-wrap: balance; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); background: radial-gradient(90% 120% at 85% 0%, #1b1611 0%, var(--black) 60%); }
.page-head h1 { margin-bottom: .3em; }

/* ---------- Game detail (games page) ---------- */
.game { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.game:last-of-type { border-bottom: 0; }
.game:nth-of-type(even) .game-shot { order: 2; }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } .game:nth-of-type(even) .game-shot { order: 0; } }
.game-shot { border: 1px solid var(--bronze-lo); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--char-1); }
.game-shot img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.meta li { font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 8px 10px; border: 1px solid var(--line); color: var(--bone-dim); border-radius: var(--radius); }
.meta li.status { border-color: var(--moss); color: #C7CDBB; }
.partners { margin: 1.4rem 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.partners h4 { font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin: 0 0 .7rem; }
.partners p { margin: 0; font-size: .98rem; }

/* ---------- Lists ---------- */
.steps { list-style: none; counter-reset: s; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border-top: 1px solid var(--bronze-lo); padding-top: 18px; color: var(--bone-dim); }
.steps li::before { content: "0" counter(s); display: block; font: 500 2rem/1 var(--serif); color: var(--bronze); margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 14px; max-width: 72ch; }
.ticks li { position: relative; padding-left: 26px; color: var(--bone-dim); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--bronze); }

/* ---------- Contact form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 2.4rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font: 500 .78rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--sans); color: var(--bone);
  background: var(--char-2); border: 1px solid #3A342C; border-radius: var(--radius);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(176, 141, 87, .25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; margin-top: 4px; }
.form-status { grid-column: 1 / -1; font-size: .95rem; color: var(--bone); margin: 0; min-height: 1.4em; }

/* ---------- Placeholder marker (must be cleared before publication) ---------- */
.ph { color: #E6B36A; background: rgba(230, 179, 106, .08); border: 1px dashed rgba(230, 179, 106, .5); padding: 0 .35em; border-radius: var(--radius); font-style: normal; }

/* ---------- Legal pages ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; }
.prose p, .prose li { color: var(--bone-dim); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--black); }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer-top img { width: 64px; height: auto; }
.footer-name { font: 600 .78rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--bone); margin: 0; }
.footer-line { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--bronze-hi); margin: 4px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.footer-nav a { color: var(--bone-dim); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--bone); }
.footer-fine { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: #8E887D; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-fine p { margin: 0; color: inherit; max-width: none; }
@media (max-width: 760px) { .footer-top { grid-template-columns: auto 1fr; } .footer-nav { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Scroll reveal (disabled under reduced motion and without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
