/* Japonica Works — japonicaworks.org
   Layout concept: the site is a wall of painted warehouse signs. Each section is a
   flat field of one brand colour; the boxed frame from the logo, with a label set
   into its bottom rule, is the one repeated device. */

/* Brand display face: BC Retroduktor SOLID (Briefcase Type Foundry), self-hosted. */
@font-face { font-family: "BC Retroduktor SOLID"; src: url("../fonts/bc-retroduktor-solid-normal.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BC Retroduktor SOLID"; src: url("../fonts/bc-retroduktor-solid-demibold.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "BC Retroduktor SOLID"; src: url("../fonts/bc-retroduktor-solid-extrabold.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }

:root {
  /* Brand palette (2026-03-29 Japonica Works Color Palette) */
  --blue: #253667;
  --pink: #F2AEBB;
  --green: #747A44;
  --yellow: #FFCA7A;
  --brown: #A0683A;
  /* Neutrals, biased toward the brand yellow and blue */
  --paper: #FFFCF5;
  --paper-2: #FBF1DC;
  --ink: #253667;
  --ink-soft: #4A5784;
  --rule: #25366733;

  --display: "BC Retroduktor SOLID", "Century Gothic", "Avenir Next", Futura, sans-serif;
  --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.4rem + 4.2vw, 4.2rem);

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
  --wrap: 1120px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: 0.08em; line-height: 1.25; }

p { margin: 0; max-width: var(--measure); }
ul, ol { margin: 0; padding-left: 1.2em; max-width: var(--measure); }
li + li { margin-top: 0.4em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--blue); padding: 0.6em 1em; z-index: 10;
}
.skip:focus { left: var(--gutter); }

/* ---------- Shared shell ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.field { padding-block: clamp(2.5rem, 6vw, 5rem); }
.field--blue   { background: var(--blue);   color: var(--paper); --frame: var(--pink);  --field: var(--blue); }
.field--yellow { background: var(--yellow); color: var(--blue);  --frame: var(--blue);  --field: var(--yellow); }
.field--pink   { background: var(--pink);   color: var(--blue);  --frame: var(--blue);  --field: var(--pink); }
.field--green  { background: var(--green);  color: var(--paper); --frame: var(--paper); --field: var(--green); }
.field--paper  { background: var(--paper);  color: var(--ink);   --frame: var(--blue);  --field: var(--paper); }
.field--paper2 { background: var(--paper-2); color: var(--ink);  --frame: var(--blue);  --field: var(--paper-2); }

/* Corrugated-metal ribbing, as on the containers and the warehouse skin */
.ribbed {
  background-image: repeating-linear-gradient(
    90deg, transparent 0 22px, rgba(37, 54, 103, 0.055) 22px 24px, transparent 24px 46px,
    rgba(255, 252, 245, 0.10) 46px 48px);
}

.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack--lg { gap: clamp(1.75rem, 4vw, 3rem); }
.stack > * { min-width: 0; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lede { font-size: var(--step-1); line-height: 1.5; }

/* ---------- Header ---------- */

.site-header { background: var(--blue); color: var(--pink); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1rem;
}
.brand { display: block; width: clamp(220px, 30vw, 340px); flex: none; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  font-family: var(--display); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); padding-block: 0.45rem; display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--pink); }
.site-nav a[aria-current="page"] { color: var(--pink); border-bottom-color: var(--pink); }

/* ---------- The sign: boxed frame with a label in the bottom rule ---------- */

.sign {
  position: relative;
  border: 1.5px solid var(--frame);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.1rem, 3vw, 2rem) clamp(1.9rem, 4vw, 2.6rem);
  display: flex; flex-direction: column; gap: 0.85rem;
  min-width: 0;
}
.sign__label {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  background: var(--field); padding-inline: 0.9em;
  font-family: var(--display); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; line-height: 1.2;
}
.sign--status .sign__label::before {
  content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%;
  background: currentColor; margin-right: 0.6em; vertical-align: 0.06em;
}
a.sign { text-decoration: none; transition: transform 0.15s ease; }
a.sign:hover { transform: translateY(-3px); }
.sign__more {
  font-family: var(--display); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.16em; text-transform: uppercase; margin-top: auto;
}
.sign__more::after { content: " \2192"; }

/* A sign that is its own colour field (the status board on the home page) */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.board > .tile { padding: clamp(1.5rem, 3.5vw, 2.5rem); display: flex; }
.board > .tile > .sign { flex: 1; }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */

.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero__logo { width: 100%; max-width: 620px; }
.hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.9vw, 3.2rem); overflow-wrap: break-word; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.page-head .wrap { display: flex; flex-direction: column; gap: 1.1rem; }

/* ---------- Two-up and photo layouts ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.photo { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.photo img { width: 100%; object-fit: cover; border: 1.5px solid var(--frame); }
.photo figcaption { font-size: var(--step--1); color: inherit; opacity: 0.85; }
.photo--tall img { aspect-ratio: 3 / 4; }
.photo--wide img { aspect-ratio: 4 / 3; }

.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); }
@media (max-width: 700px) { .photos { grid-template-columns: 1fr; } }

.placeholder {
  border: 1.5px dashed var(--frame); aspect-ratio: 4 / 3; max-width: 100%;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  font-family: var(--display); letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--step--1);
}

/* ---------- Lists of facts ---------- */

.facts { list-style: none; padding: 0; margin: 0; max-width: var(--measure); border-top: 1.5px solid var(--frame); }
.facts li { margin: 0; padding-block: 0.7rem; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(7.5rem, 0.32fr) minmax(0, 1fr); gap: 0.25rem 1.25rem; }
.facts li > span:first-child { font-family: var(--display); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; padding-top: 0.2em; }
.field--blue .facts li, .field--green .facts li { border-bottom-color: #FFFCF540; }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.25rem, 3vw, 2rem); }

.steps { list-style: none; padding: 0; margin: 0; max-width: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.5rem 2rem; }
.steps li { margin: 0; counter-increment: step; display: flex; flex-direction: column; gap: 0.4rem; border-top: 1.5px solid var(--frame); padding-top: 0.9rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1; }

/* ---------- Buttons and contact ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.button {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; line-height: 1;
  padding: 1em 1.4em 0.85em; border: 1.5px solid var(--frame);
  background: var(--frame); color: var(--field);
}
.button:hover { background: transparent; color: var(--frame); }
.button--ghost { background: transparent; color: inherit; }
.button--ghost:hover { background: var(--frame); color: var(--field); }

.contact-lines { font-style: normal; display: flex; flex-direction: column; gap: 0.35rem; }
.contact-lines strong { font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.big-contact { font-family: var(--display); font-weight: 600; font-size: var(--step-2); letter-spacing: 0.03em; line-height: 1.25; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer { background: var(--blue); color: var(--paper); --frame: var(--pink); --field: var(--blue); padding-block: clamp(2.5rem, 5vw, 4rem); font-size: var(--step--1); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(1.5rem, 4vw, 3rem); align-items: start; }
.site-footer img { width: min(100%, 240px); }
.site-footer h2 { font-size: var(--step--1); letter-spacing: 0.22em; color: var(--pink); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #FFFCF540; padding-top: 1.25rem; max-width: none; opacity: 0.85; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Draft-review markers (removed in the live build) ---------- */

.review-bar { background: #1B1B1B; color: #FFFCF5; font-size: var(--step--1); padding-block: 0.6rem; }
.review-bar .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; }
.review-bar strong { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: #FFCA7A; }
mark.tbd { background: #FFF200; color: #1B1B1B; padding: 0.05em 0.3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

@media (prefers-reduced-motion: reduce) { a.sign { transition: none; } a.sign:hover { transform: none; } }

/* ---------- Aerial band, plans, wish list, merch (added 2026-10-06) ---------- */

.aerial { margin: 0; background: var(--blue); color: var(--paper); }
.aerial img { width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; object-fit: cover; }
.aerial figcaption { padding-block: 0.7rem; font-size: var(--step--1); }

.plan { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.plan a:first-child { display: block; }
.plan img { width: 100%; border: 1.5px solid var(--frame); background: #fff; }
.plan figcaption { font-size: var(--step--1); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }

.wishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(1.5rem, 3vw, 2rem); align-items: start; }
.wish { padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.wish ul { max-width: none; }

.merch { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.photo--square img { aspect-ratio: 1 / 1; }

/* ---------- Posted-sign page (enter at your own risk) ---------- */

.legal { display: flex; flex-direction: column; gap: 0.9rem; }
.legal > * { max-width: 72ch; }
.legal h2 { font-size: var(--step-1); letter-spacing: 0.08em; line-height: 1.25; margin-top: 0.9rem; }
.legal h2:first-child { margin-top: 0; }
.legal__ack { margin-top: 0.9rem; }
.legal__fine { font-size: var(--step--1); }
.legal .actions { margin-top: 0.9rem; }

/* ---------- Home page header: menu only, spread across the bar ---------- */

.site-header--home .wrap { padding-block: 0.6rem; }
.site-header--home .site-nav { flex: 1; }
.site-header--home .site-nav ul { justify-content: space-between; }
@media (max-width: 760px) { .site-header--home .site-nav ul { justify-content: center; } }

/* A single wide photo that closes a page */
.photo--band img { aspect-ratio: 16 / 9; }
