/* Embicáy Studios marketing site: shared tokens, type, header, footer, buttons.
   Tokens are copied from ../../styles.css (the buyer page) and must stay equal:
   test/site-tokens.test.js fails if they drift. */
:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --ink: #1d2a22;
  --ink-2: #4c5a50;
  --line: #cfc5b2;
  --signal: #7a2e2a;          /* oxblood: only ever means "tap this" */
  --signal-ink: #fbf6ee;
  --available: #2f6b4f;
  --reserved: #8a5a14;
  --sold: #5f5e59;
  --field-line: #8a8272;      /* borders of fields, chips and filter buttons: 3:1 on paper */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --bar-h: 64px;
  --sec: clamp(72px, 10vw, 160px);   /* space between sections */
  --sub: 40px;                       /* space between blocks inside a section */
}
@media (min-width: 1800px) { :root { --max: 1640px; } html { font-size: 17px; } }
@media (min-width: 2300px) { :root { --max: 1960px; } html { font-size: 19px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.foot :focus-visible, .skip:focus { outline-color: var(--paper); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { top: 8px; }

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { margin: 0; font: 500 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
h1, h2, h3 { text-wrap: balance; font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1; }
h3 { font-size: 1.6rem; line-height: 1.1; font-weight: 500; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { color: var(--ink-2); max-width: 52ch; }
.small { font-size: 0.9rem; color: var(--ink-2); }
.num-t { font-variant-numeric: lining-nums tabular-nums; }

/* links and buttons: oxblood only on things you tap */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 2px; border: 1px solid var(--signal);
  font: 500 0.92rem/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: background-color 160ms, color 160ms, transform 160ms var(--ease);
}
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: #8d3732; border-color: #8d3732; }
.btn-ghost { background: transparent; color: var(--signal); }
.btn-ghost:hover { background: var(--signal); color: var(--signal-ink); }
.btn:active { transform: scale(0.97); }
.link {
  color: var(--signal); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 500;
}
.link:hover { text-decoration-thickness: 2px; }
.prose a { color: var(--signal); text-underline-offset: 3px; }

/* header */
.bar {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: 20px; min-height: var(--bar-h); }
.mark:hover .mark-name, .mark:hover .mark-sub { color: var(--signal); }
.mark-name, .mark-sub { transition: color 160ms; }
.mark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; white-space: nowrap; color: var(--ink); }
/* the wordmark: tracked serif capitals, a hairline, then STUDIOS small in the sans */
.mark-name { font: 500 1.32rem/1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase; padding-top: 0.18em; margin-right: -0.16em; }
.mark-sub { font: 600 0.6rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--field-line); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 0.9rem; text-decoration: none; color: var(--ink-2);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.nav .btn { margin-left: 10px; min-height: 44px; }
.menu-btn {
  display: none; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 14px;
  background: transparent; border: 1px solid var(--field-line); border-radius: 2px;
  font: 500 0.85rem/1 var(--sans); color: var(--ink); cursor: pointer;
}
.menu-btn:active { transform: scale(0.97); }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .js .nav { display: none; }
  .js .nav.open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav { flex-wrap: wrap; }
  .nav.open a:not(.btn) { border-bottom: 1px solid var(--line); padding: 0; min-height: 52px; font-size: 1rem; }
  .nav.open .btn { margin: 16px 0 0; }
  .bar-in { position: relative; }
}
@media (max-width: 980px) { html:not(.js) .nav { margin-left: 0; width: 100%; padding-bottom: 8px; } html:not(.js) .bar-in { flex-wrap: wrap; } }

/* footer: the lobby directory */
.foot { margin-top: var(--sec); background: var(--ink); color: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot a { color: var(--paper); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(56px, 7vw, 96px) 40px; }
.foot .mark { color: var(--paper); margin-bottom: 18px; }
.foot .mark-name { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.foot .mark-sub { color: #c9c3b6; border-left-color: #5d6b61; font-size: 0.66rem; }
.foot-line { color: #c9c3b6; max-width: 34ch; font-size: 0.95rem; }
.foot h2 { font: 500 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #a9b3a9; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid #34433a; font-size: 0.95rem; }
.foot li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot li.tbc { padding: 12px 0; border-bottom: 1px solid #34433a; color: #c9c3b6; font-size: 0.95rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 32px; padding-block: 12px 20px; font-size: 0.82rem; color: #c9c3b6;
  background: linear-gradient(#34433a, #34433a) padding-box top / calc(100% - 2 * var(--gutter)) 1px no-repeat; background-position: var(--gutter) 0; }
.foot-base p { margin: 0; }
.foot-base a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-underline-offset: 4px; }
@media (max-width: 980px) { .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  /* phones: a compact directory, not a tall stack of rows */
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 48px 28px; }
  .foot .mark { margin-bottom: 10px; }
  .foot .mark-name { font-size: 1.5rem; }
  .foot-line { font-size: 0.9rem; margin: 0; }
  .foot-top > div:last-child { grid-column: 1 / -1; }
  .foot h2 { margin-bottom: 4px; font-size: 0.7rem; }
  .foot li a { border-bottom: 0; min-height: 44px; font-size: 0.92rem; }
  .foot li.tbc { border-bottom: 0; padding: 6px 0; font-size: 0.9rem; }
  .foot-base { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 8px 20px; font-size: 0.78rem; }
}

/* a value that is not settled yet: shown plainly, never as a raw placeholder */
.tbc { color: var(--ink-2); font-style: italic; }
.foot .tbc { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
