/* cordaves.com. Tokens from the Cordaves brand kit (website-design-test/cordaves-ci/final/kit/tokens.css and
   final/type-copy-loop/best/type-tokens.css), 3 Nov 2026. Archivo and Archivo Black, SIL Open Font Licence. */

@font-face { font-family: "Archivo"; src: url(../fonts/archivo-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url(../fonts/archivo-black-400.woff) format("woff"); font-weight: 400; font-display: swap; }

:root {
  --paper: #FBFAF7;
  --ink: #131313;
  --muted: #3E3F42;
  --rule: #DAD8D2;
  --accent: #B0122E;          /* crimson: buttons, sticker, links */
  --sticker: #B0122E;         /* white text 7.1:1 */
  --button: #B0122E;
  --button-text: #FFFFFF;
  --label: #B0122E;
  --font: "Archivo", system-ui, sans-serif;
  --word: "Archivo Black", "Archivo", sans-serif;
  --dk: none; --lt: block;
  --lock-gap: 0.179;
  color-scheme: light dark;
}
/* Dark: follows the device unless the visitor picked a mode with the logo button (html[data-theme], theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
      --paper: #1A2440;         /* navy */
      --ink: #F3F1EC;           /* 13.6:1 */
      --muted: #CDCFD4;         /* 9.8:1 */
      --rule: #36415F;
      --sticker: #D0243F;       /* white text 5.2:1 */
      --button: #E8455F;        /* ink text 4.97:1 */
      --button-text: #0E0F12;
      --label: #F07A8C;         /* 5.7:1 on navy */
      --accent: #F07A8C;
      --dk: block; --lt: none;  /* which logo file shows */
      --lock-gap: 0.256;        /* A: the white rim sits inside the box */
  }
}
:root[data-theme="dark"] {
    --paper: #1A2440;         /* navy */
    --ink: #F3F1EC;           /* 13.6:1 */
    --muted: #CDCFD4;         /* 9.8:1 */
    --rule: #36415F;
    --sticker: #D0243F;       /* white text 5.2:1 */
    --button: #E8455F;        /* ink text 4.97:1 */
    --button-text: #0E0F12;
    --label: #F07A8C;         /* 5.7:1 on navy */
    --accent: #F07A8C;
    --dk: block; --lt: none;  /* which logo file shows */
    --lock-gap: 0.256;        /* A: the white rim sits inside the box */
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font); }
/* owner, 3 Nov: one screen, no scrolling. Header, hero and footer share the screen; the hero takes what is left.
   Very small or landscape phones may still scroll a little rather than cut anything off. */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; }
main > .hero, main > .wrap { flex: 1; display: flex; flex-direction: column; }
.hero .wrap { flex: 1; width: 100%; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 9; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1312px; margin: 0 auto; padding: 0 64px; }

/* ---- Lockup (logo-lockup skill, measured on the rendered page): the bird's visible ink = 2.0 x the ink height of
        "Cordaves" in Archivo Black, as in the kit; visible gap = bird / 4; centres within 2 px. The SVG has transparent
        padding, so the image box is larger than the ink (image height 1.99 em of the word size, margin 0.179 em, 0.256 em with the rim). ---- */
.lockup { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); --fs: 26px; }
.lockup img { flex: none; height: calc(var(--fs) * 1.99); width: auto; margin-right: calc(var(--fs) * var(--lock-gap)); }
img.lt { display: var(--lt); } img.dk { display: var(--dk); }
/* The header logo is also the light/dark switch (a button, so it works with the keyboard). */
button.lockup { font: inherit; background: none; border: 0; padding: 4px 0; margin: 0; cursor: pointer; border-radius: 6px; }
@media (hover: hover) { button.lockup:hover .word { color: var(--accent); } }
.lockup .word { font: 400 var(--fs)/1 var(--word); letter-spacing: -0.01em; white-space: nowrap; position: relative; top: 0.035em; }

/* ---- Header ---- */
/* The header has a fixed height so the first screen (header + hero) is exactly one screen tall. */
:root { --top-h: 96px; }
.top { height: var(--top-h); display: flex; align-items: center; }
.top .wrap { width: 100%; }
.top .wrap { display: flex; align-items: center; gap: 36px; }
.top .lockup { margin-right: auto; }
.top nav { display: flex; gap: 36px; }
.top nav a { text-decoration: none; font-size: 16px; padding: 10px 0; }
.top nav a:hover { color: var(--accent); }

/* ---- Hero ---- */
.hero .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center;
              padding-top: 24px; padding-bottom: calc(24px + 4vh); }
h1 { margin: 0; font-weight: 600; font-size: clamp(34px, 6.2vw, 92px); line-height: 1.12; letter-spacing: -0.025em; }
h1 .ln { display: block; white-space: nowrap; }
.app { position: relative; display: inline-block; }
/* I1d sticker, geometry fixed by the owner: right -0.22em, top -0.14em, tilt 9 degrees */
.stk { position: absolute; right: -0.22em; top: -0.14em; transform: rotate(9deg); font: 400 max(.42em, 9.5px)/1 var(--word);
       letter-spacing: 0.01em; color: #fff; background: var(--sticker); padding: .22em .45em .26em; border-radius: .35em;
       box-shadow: 0 2px 0 rgba(0,0,0,.18); white-space: nowrap; }
.sub { font-size: 26px; line-height: 1.35; color: var(--muted); margin: 22px 0 0; text-wrap: balance; }
.btn { display: inline-block; margin-top: 34px; background: var(--button); color: var(--button-text); font-weight: 600;
       font-size: 17px; padding: 15px 26px; border-radius: 6px; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.art img { width: 340px; height: auto; }

/* ---- Sections ---- */
section.band { border-top: 1px solid var(--rule); }
section.band .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.band .label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--label); font-weight: 600; margin: 8px 0 0; }
h2 { text-wrap: balance; margin: 0 0 14px; font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; }
.band p { margin: 0 0 14px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 720px; }
.band p.lead { color: var(--ink); }
.mail { font-weight: 600; color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; font-size: 22px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding-top: 14px; padding-bottom: 16px; }
footer .lockup { --fs: 18px; margin-right: auto; }
footer a { text-decoration: none; padding: 8px 0; }
footer a:hover { color: var(--accent); }

/* ---- Legal pages ---- */
.legal .wrap { max-width: 860px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li, .legal address { font-size: 17px; line-height: 1.6; color: var(--muted); font-style: normal; }
.legal p, .legal address { margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal a { color: var(--accent); }
.legal .en { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 18px 0 28px; }
.legal .stand { margin-top: 36px; font-size: 14px; }
.notfound .wrap { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

/* ---- Tablet ---- */
@media (max-width: 1100px) {
  .wrap { padding: 0 40px; }
  .hero .wrap { grid-template-columns: 1fr 240px; }
  .art img { width: 240px; }
  .sub { font-size: 22px; }
  section.band .wrap { grid-template-columns: 220px 1fr; }
}

/* ---- Phone ---- */
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  :root { --top-h: 72px; }
  .top .wrap { gap: 14px; }
  .top .lockup { --fs: 22px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 14px; padding: 12px 0; }
  .hero .wrap { display: flex; flex-direction: column-reverse; justify-content: center; align-items: flex-start; gap: 8px;
                padding-top: 18px; padding-bottom: 44px; }
  .art { align-self: flex-end; }
  .art img { width: 150px; }
  h1 { font-size: 32px; letter-spacing: -0.01em; }
  .sub { font-size: 18px; margin-top: 14px; }
  .btn { margin-top: 24px; }
  section.band .wrap { display: block; padding-top: 48px; padding-bottom: 48px; }
  .band .label { margin: 0 0 12px; }
  .band p { font-size: 17px; }
  .mail { font-size: 19px; }
}
@media (max-width: 360px) { h1 { font-size: 28px; } .top nav { gap: 10px; } }
