/* Shared base for both directions. Decisions: ../YAPI.md and ../ARAYUZ.md (2026-11-10). EB Garamond only. */
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/ebgaramond-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: "EB Garamond", Georgia, serif;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-variant-numeric: oldstyle-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--focus); color: var(--page); padding: .5rem 1rem; z-index: 10; }
.skip:focus { top: .5rem; }

/* Header and identity */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.identity { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; color: var(--text); }
.identity .mark { width: 64px; flex: none; }
.identity .words { min-width: 0; flex: 1; }
.identity .name { display: block; font-weight: 500; font-size: 20px; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.identity .rule { display: block; height: 1px; background: currentColor; margin-block: 7px; }
.identity .slogan { display: block; font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; }
.identity .lockup { display: none; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
@media (min-width: 768px) {
  .identity .mark, .identity .words { display: none; }
  .identity .lockup { display: block; width: min(var(--lockup-width), 62vw); }
}
@media (max-width: 767px) {
  /* review 1 (Sol MUST, Terra SHOULD): navigation below the identity, aligned with its text */
  .site-header .wrap { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; }
  .identity { grid-column: 1 / -1; width: 100%; }
  .nav-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 359px) { .identity .name { white-space: normal; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 11px 22px;
  background: var(--button-bg); color: var(--button-text); border: 1px solid var(--button-bg);
  font-weight: 500; text-decoration: none; border-radius: 0;
}
.button:hover { background: var(--button-hover-bg); border-color: var(--button-hover-bg); color: var(--button-hover-text); }

/* Section labels in spaced capitals, quiet like the logo's slogan */
.label { font-size: var(--text-label); font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase; }

/* Cards */
.grid { display: grid; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.card .well { aspect-ratio: var(--well-ratio); background: var(--card-ground); padding: var(--well-pad); display: flex; align-items: center; justify-content: center; }
.card .well img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: var(--text-card); font-weight: 500; line-height: var(--leading-card); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card .figure { font-size: var(--text-small); margin-top: 4px; }
.card a:hover h3 { text-decoration-thickness: 2px; color: var(--card-hover-title); }

/* Design page */
.back { display: inline-flex; min-height: 44px; align-items: center; }
.detail { display: grid; gap: 24px; }
.detail .art { background: var(--card-ground); padding: var(--art-pad); }
.detail .art img { margin-inline: auto; }
.detail .fullsize { display: inline-block; margin-top: 12px; font-size: var(--text-small); }
.detail h1 { font-size: var(--text-h1); font-weight: 500; line-height: var(--leading-heading); max-width: 22ch; }
.detail .figure { margin-top: 8px; color: var(--muted); }
.buy .buttons { display: grid; gap: 12px; }
.buy .note { margin-top: 16px; font-size: var(--text-small); color: var(--buy-muted); }
.buy .unavailable, .buy .soon { font-size: var(--text-body); }
.buy .buttons + .soon { margin-top: 16px; }
.home-availability { max-width: 48ch; margin: 16px auto 0; font-size: var(--text-small); line-height: 1.5; text-align: center; } /* release check: Sol */

/* Prose (legal) */
.prose { max-width: var(--reading-max); }
.prose h1 { font-size: var(--text-h1); font-weight: 500; line-height: var(--leading-heading); margin-bottom: 1.5rem; }
.prose h2 { font-size: var(--text-section); font-weight: 500; margin-top: 2rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; }
.prose .todo { font-style: normal; color: var(--muted); }

/* Short 404 page: footer at the bottom (review 1, Sol) */
body:has(main.notfound) { display: flex; flex-direction: column; }
main.notfound { flex: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 32px; font-size: var(--text-small); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer .copy { display: inline-flex; min-height: 44px; align-items: center; }

.preview-tag { position: fixed; right: 8px; bottom: 8px; z-index: 20; font: 12px/1.2 system-ui, sans-serif; background: #171714; color: #F2EAD8; padding: 4px 8px; opacity: .85; }

/* B: The navy cabinet (GPT-6.1 Terra "navy folio", GPT-6.1 Sol "Navy Print Cabinet", Gemini 4 Argon "Navy Cabinet"; details by majority, ../ARAYUZ.md) */
:root {
  color-scheme: dark;
  --ink: #171714; --cream: #F2EAD8; --navy: #233B56; --vermilion: #A63329;
  --page: var(--navy);
  --card-ground: var(--cream);
  --text: var(--cream);
  --muted: #D3CCBC;                /* cream shaded toward navy, 8.4:1 on navy */
  --rule: #8C97A3;                 /* navy/cream mix, decorative only */
  --focus: var(--cream);
  --button-bg: var(--cream); --button-text: var(--navy);
  --button-hover-bg: var(--navy); --button-hover-text: var(--cream);
  --paper-text: var(--ink); --paper-muted: #5A564C; --paper-rule: #B9B09D;
  --card-hover-title: var(--vermilion);
  --buy-muted: var(--paper-muted);

  --text-small: clamp(1rem, .96rem + .16vw, 1.0625rem);
  --text-body: clamp(1.125rem, 1.07rem + .23vw, 1.25rem);
  --text-card: clamp(1.3rem, 1.24rem + .3vw, 1.5rem);
  --text-section: clamp(1.375rem, 1.25rem + .5vw, 1.625rem);
  --text-intro: clamp(1.75rem, 1.55rem + .82vw, 2.25rem);
  --text-h1: clamp(2rem, 1.7rem + 1.23vw, 2.75rem);
  --text-label: clamp(.95rem, .9rem + .2vw, 1.05rem);
  --leading-body: 1.45; --leading-heading: 1.1; --leading-card: 1.15;
  --tracking-caps: .16em;

  --gutter: clamp(1.5rem, 3.75vw, 3rem);
  --content-max: 70rem;
  --reading-max: 42rem;
  --lockup-width: 480px;          /* review 1: Terra, Argon 480 (Sol 520) */
  --frame-inset: clamp(.5rem, .9375vw, .75rem);
  --well-ratio: 1 / 1;
  --well-pad: 16px;
  --art-pad: 12px;
}

/* The cover's inset frame, around the whole document (Sol, Gemini) */
body { position: relative; }
body::before { content: ""; position: absolute; inset: var(--frame-inset); border: 1px solid var(--rule); pointer-events: none; }
.site-header { border-bottom: 0; }
.site-header .wrap { padding-top: 24px; }

.intro .wrap { text-align: center; padding-block: 32px 56px; }
.intro .lede { font-size: var(--text-intro); line-height: 1.15; max-width: 24ch; margin-inline: auto; }
.intro .button { margin-top: 24px; }
.intro .button:hover { border-color: var(--cream); } /* review 1: all three */
@media (min-width: 768px) { .intro .lede { max-width: none; } } /* review 1: Sol, no lone last word */

.designs h2 { margin-bottom: 24px; }
.designs .grid, .others .grid { gap: 24px; }
@media (min-width: 768px) { .designs .grid, .others .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1024px) { .designs .grid, .others .grid { gap: 40px; } }
.card a { background: var(--card-ground); color: var(--paper-text); --focus: var(--cream); }
.card a { position: relative; }
/* review 1: no shadow (Terra, Sol); a visible inner frame on hover (Terra, Argon), drawn as a border inside the sheet */
.card a:hover::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--navy); pointer-events: none; }
.card .well { background: var(--card-ground); }
@media (min-width: 768px) { .card .well { padding: 24px; } }
.card .caption { margin-inline: 20px; padding: 16px 0 20px; border-top: 1px solid var(--paper-rule); }
@media (min-width: 768px) { .card .caption { margin-inline: 24px; padding: 20px 0 24px; } }
.card .figure { color: var(--paper-muted); margin-top: 6px; }

.band { margin-top: 64px; }
.band .wrap { display: grid; gap: 24px; }
.band .inner { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 40px; display: grid; gap: 24px; }
.band .about { font-size: var(--text-intro); line-height: 1.2; max-width: 22ch; }
.band p + p, .band p + a, .band a + p { margin-top: 12px; }
.band .shop { display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; }
.band .small { font-size: var(--text-small); color: var(--muted); }
@media (min-width: 768px) { .band .inner { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }

.site-footer { border-top: 0; }

/* Design page */
main.design .wrap { padding-block: 24px 64px; }
.detail { margin-top: 16px; }
.detail .figure { color: var(--muted); }
.detail .art { color: var(--paper-text); --focus: var(--ink); } /* review 1: all three MUST, full-size link was cream on cream */
.buy { background: var(--cream); color: var(--paper-text); padding: 20px; --focus: var(--ink); --button-bg: var(--navy); --button-text: var(--cream); --button-hover-bg: var(--ink); --button-hover-text: var(--cream); }
.buy .button { width: 100%; }
@media (min-width: 1024px) {
  .detail { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 40px; align-items: start; margin-top: 24px; }
  .detail .art { grid-column: 1; grid-row: 1 / span 3; padding: 24px; }
  .detail .head { grid-column: 2; grid-row: 1; }
  .detail .buy { grid-column: 2; grid-row: 2; margin-top: 32px; padding: 24px; }
}
.others { margin-top: 64px; }
.others h2 { margin-bottom: 24px; }

/* Legal on a cream reading sheet (Sol, Gemini) */
main.legal .wrap { padding-block: 32px 64px; }
main.legal .prose { background: var(--cream); color: var(--ink); padding: 24px; max-width: 48rem; margin-inline: auto; --focus: var(--ink); --muted: var(--paper-muted); } /* review 1: Argon, centred sheet */
@media (min-width: 768px) { main.legal .prose { padding: 48px; } }
main.notfound .wrap { padding-block: 40px 96px; }
main.notfound p + p { margin-top: 16px; }
