/* Bunky — getbunky.com
   Visual language: one motif, the door (round outside, square inside, a visible wall).
   Archivo for everything. No shadow, no gradient, no outline around a door.
   Light by default; data-theme="dark" exists for testing the dark palette. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cobalt: #1F3FFF;
  --ink: #0B1026;
  --paper: #F4F6FF;
  --line: #D5DCF7;
  --muted: #5A6079;
  --bg: #FFFFFF;
  --fg: var(--ink);
  --accent: var(--cobalt);
  --on-accent: #FFFFFF;
  --wall: var(--cobalt);            /* the door's wall: cobalt for a brand moment */
  --opening: #E3E9FF;               /* what the door frames until a photo is placed */
  --wordmark: url("/assets/img/bunky-wordmark-cobalt.png");
  --wall-px: 24px;                  /* outer radius is always 1.5 × wall */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1026;
  --fg: #FFFFFF;
  --muted: #A8AEC8;
  --line: #2A3260;
  --accent: #8FA2FF;
  --on-accent: #0B1026;
  --wall: #161C3A;
  --opening: #0B1026;
  --wordmark: url("/assets/img/bunky-wordmark-light.png");
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
body {
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: min(1040px, 100% - 2 * clamp(20px, 6vw, 64px)); margin-inline: auto; }

/* Header: the wordmark has its own doors; it never goes inside one. */
.top { padding-block: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: block; width: 92px; aspect-ratio: 754 / 243; background: var(--wordmark) center / contain no-repeat; }
.lang { display: flex; gap: 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.lang a { text-decoration: none; padding: 6px 9px; border-radius: 8px; color: var(--muted); }
.lang a[aria-current="page"] { color: var(--accent); }
.lang a:hover { color: var(--fg); }

/* Hero: centred, generous air, one door below the words. */
.hero { text-align: center; padding-block: clamp(40px, 8vw, 104px) 0; }
.hero > * { margin-inline: auto; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1; letter-spacing: -.03em; font-weight: 800; font-stretch: 112%; max-width: 11em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 26px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--muted); max-width: 30em; text-wrap: pretty; }

.stores { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.stores a { display: inline-block; line-height: 0; border-radius: 9px; }
.stores a[aria-disabled="true"] { cursor: default; }
.apple img { height: 48px; width: auto; }
.google img { height: 71px; width: auto; margin: -11.5px -10px; }
.soon { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 10px; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }

/* The door: wall = padding, outer radius = 1.5 × wall, square opening. One per page. */
.door-wrap { margin: clamp(44px, 7vw, 88px) auto 0; max-width: 560px; }
.door { background: var(--wall); padding: var(--wall-px); border-radius: calc(var(--wall-px) * 1.5); container-type: inline-size; }
.door img, .door .opening { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; background: var(--opening); }
/* Until a photo is placed, the door frames the access code: ink on white, the strongest contrast of the palette. */
.door .opening { background: #FFFFFF; position: relative; display: grid; place-items: center; }
.door .opening b { font-size: 24cqw; font-weight: 800; font-stretch: 112%; letter-spacing: .06em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.door .opening small { position: absolute; left: 0; top: 0; padding: 8px 12px; background: var(--cobalt); color: #FFFFFF; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: 0; }
.door-note { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 640px) { :root { --wall-px: 16px; } }

/* Kinds of space: pictos from the brand set (24 grid, stroke 2, round outside, square inside) */
.kinds { margin-top: clamp(64px, 10vw, 128px); display: grid; gap: 36px 32px; text-align: center; }
@media (min-width: 640px) { .kinds { grid-template-columns: repeat(3, 1fr); } }
.kind svg { width: 40px; height: 40px; color: var(--accent); margin-inline: auto; }
.kind h2 { font-size: 18px; font-weight: 700; line-height: 1.25; margin-top: 14px; }
.kind p { margin: 6px auto 0; color: var(--muted); font-size: 15px; max-width: 18em; }

/* Owners */
.owners { margin: clamp(64px, 10vw, 128px) auto 0; max-width: 620px; text-align: center; }
.owners h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.owners p { margin-top: 14px; color: var(--muted); text-wrap: pretty; }
.btn { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; font-size: 16px; }
.btn svg { width: 22px; height: 22px; }
.btn:hover { opacity: .92; }

/* Footer */
footer { margin-top: clamp(72px, 11vw, 140px); border-top: 1px solid var(--line); padding-block: 22px 40px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }
footer nav { display: flex; gap: 20px; }
