/* Ninth Frame — element-first, brutalist */
html { --paper: #e8e8e3; --black: #0d0d0d; --gray: #4d4d4a; --safelight: #c4161c; --line: 3px solid var(--black);
  --cond: "Helvetica Neue Condensed", "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", sans-serif-condensed, sans-serif;
  --grot: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--paper); color: var(--black); font: 400 1.0625rem/1.6 var(--grot); scroll-padding-top: 1rem; }
body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
svg { display: block; max-width: 100%; }
a { color: var(--black); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--safelight); }
a:hover { background: var(--black); color: var(--paper); text-decoration: none; }
:focus-visible { outline: 4px solid var(--safelight); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(3rem, 9vw, 7.2rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: 1.6rem; line-height: 1; }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { max-width: 64ch; }
code { font: .92em ui-monospace, Menlo, monospace; background: #d6d6d0; padding: 0 .25em; }

body > a:first-child { position: absolute; left: -999em; background: var(--safelight); color: #fff; padding: .8rem 1rem; z-index: 99; font-weight: 700; }
body > a:first-child:focus { left: 0; top: 0; }

/* header strip */
body > header { border-bottom: var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; }
body > header > a { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.4rem; border-right: var(--line); text-decoration: none; font: 700 1.5rem var(--cond); text-transform: uppercase; letter-spacing: .02em; }
body > header > a:hover { background: var(--black); color: var(--paper); }
body > header > a svg { width: 40px; height: 40px; }
body > header nav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
body > header nav li { display: flex; }
body > header nav a { display: flex; align-items: center; padding: 0 1.2rem; min-height: 52px; font: 700 1rem var(--cond); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-right: 1px solid var(--black); }
body > header nav a[aria-current] { background: var(--safelight); color: #fff; }
body > header > button { display: none; border: 0; border-left: var(--line); background: var(--paper); font: 700 1rem var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 0 1.2rem; min-height: 52px; cursor: pointer; color: var(--black); }
body > header > p { margin: 0; display: flex; align-items: center; padding: 0 1.4rem; border-left: var(--line); font: 700 .8rem var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
@media (max-width: 900px) {
  body > header { grid-template-columns: 1fr auto; }
  body > header > p { display: none; }
  body > header > button { display: block; }
  body > header nav { grid-column: 1 / -1; display: none; border-top: var(--line); }
  body > header nav.open { display: block; }
  body > header nav ul { flex-direction: column; }
  body > header nav a { border-right: 0; border-bottom: 1px solid var(--black); min-height: 54px; }
}

/* main blocks */
main > section { border-bottom: var(--line); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem); }
main > section.inverse { background: var(--black); color: var(--paper); }
main > section.inverse a { color: var(--paper); }
main > section.inverse a:hover { background: var(--paper); color: var(--black); }
main > section.red { background: var(--safelight); color: #fff; }
main > section.red a { color: #fff; text-decoration-color: #fff; }
main > section.red a:hover { background: #fff; color: var(--safelight); }
main > section > header { max-width: 1200px; }
main > section > header > small, .label { display: inline-block; font: 700 .85rem var(--cond); letter-spacing: .18em; text-transform: uppercase; border: 2px solid currentColor; padding: .2rem .55rem; margin-bottom: 1.2rem; }
.big { font-size: 1.3rem; line-height: 1.5; max-width: 40ch; }

/* split grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; max-width: 1300px; }
.grid > .wide { grid-column: span 7; }
.grid > .narrow { grid-column: span 5; }
@media (max-width: 900px) { .grid > .wide, .grid > .narrow { grid-column: 1 / -1; } }

/* buttons */
.do { display: inline-flex; align-items: center; min-height: 54px; padding: 0 1.6rem; font: 700 1.05rem var(--cond); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: var(--line); background: var(--black); color: var(--paper); cursor: pointer; }
.do:hover { background: var(--safelight); border-color: var(--safelight); color: #fff; }
.do.alt { background: transparent; color: var(--black); }
.do.alt:hover { background: var(--black); color: var(--paper); }
.inverse .do { background: var(--paper); color: var(--black); border-color: var(--paper); }
.inverse .do:hover { background: var(--safelight); border-color: var(--safelight); color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* film strip */
.strip { background: var(--black); padding: 22px 0; position: relative; margin-top: 2rem; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 10px, var(--paper) 10px 22px, transparent 22px 32px); }
.strip::before { top: 6px; } .strip::after { bottom: 6px; }
.strip ol { list-style: none; margin: 0; padding: 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; max-width: none; }
.strip li { background: #1d1d1b; color: var(--paper); padding: 1.2rem; min-height: 200px; display: flex; flex-direction: column; }
.strip li b { font: 700 2.6rem var(--cond); color: var(--safelight); line-height: 1; margin-bottom: .6rem; }
.strip li a { color: var(--paper); margin-top: auto; padding-top: .6rem; font-weight: 700; }

/* contact sheet */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: var(--line); border-left: var(--line); margin-top: 2rem; }
.sheet > article { border-right: var(--line); border-bottom: var(--line); padding: 1.5rem; display: flex; flex-direction: column; background: var(--paper); }
.sheet > article > span { font: 700 .8rem ui-monospace, Menlo, monospace; color: var(--safelight); margin-bottom: .8rem; }
.sheet > article > a { margin-top: auto; padding-top: .8rem; font-weight: 700; }

/* q&a */
dl.qa { max-width: 900px; margin: 2rem 0 0; border-top: var(--line); }
dl.qa dt { font: 700 1.5rem var(--cond); text-transform: uppercase; padding: 1.2rem 0 .4rem; }
dl.qa dd { margin: 0; padding-bottom: 1.2rem; border-bottom: 1px solid var(--black); max-width: 64ch; }

/* long form */
.manual { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; max-width: 1200px; }
@media (max-width: 960px) { .manual { grid-template-columns: 1fr; } }
.manual > nav { border: var(--line); padding: 1.2rem; align-self: start; position: sticky; top: 1rem; background: var(--paper); }
@media (max-width: 960px) { .manual > nav { position: static; } }
.manual > nav ol { margin: .6rem 0 0; padding-left: 1.4rem; }
.manual > nav li { margin: .35rem 0; }
.manual article h2 { margin-top: 1.6em; padding-top: .6em; border-top: var(--line); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.manual article h2:first-child { margin-top: 0; }
.manual article h3 { margin-top: 1.5em; }
.manual article li { margin-bottom: .45em; }
figure.table { margin: 1.5rem 0 2rem; overflow-x: auto; border: var(--line); }
figure.table table { border-collapse: collapse; width: 100%; font-size: .98rem; }
figure.table th, figure.table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--black); vertical-align: top; }
figure.table th { background: var(--black); color: var(--paper); font: 700 .9rem var(--cond); letter-spacing: .08em; text-transform: uppercase; }
figure.table tr:last-child td { border-bottom: 0; }
aside.warn, aside.tip { border: var(--line); padding: 1rem 1.2rem; margin: 1.6rem 0; max-width: 64ch; }
aside.warn { border-color: var(--safelight); box-shadow: 8px 8px 0 var(--safelight); }
aside.tip { box-shadow: 8px 8px 0 var(--black); }
aside p:last-child { margin: 0; }

/* stocks */
nav.jump ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0; max-width: none; border-left: var(--line); border-top: var(--line); }
nav.jump a { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; border-right: var(--line); border-bottom: var(--line); font: 700 .95rem var(--cond); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.stock { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; padding: 2.5rem 0; border-top: var(--line); max-width: 1100px; scroll-margin-top: 1rem; }
.stock svg { width: 200px; height: 140px; }
@media (max-width: 700px) { .stock { grid-template-columns: 1fr; } .stock svg { width: 160px; height: 112px; } }
.stock table { border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .95rem; }
.stock th { text-align: left; padding: .3rem 1.2rem .3rem 0; font: 700 .85rem var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.stock td { padding: .3rem 0; }

/* form */
form { display: grid; gap: 1.3rem; max-width: 640px; border: var(--line); padding: clamp(1.3rem, 4vw, 2.2rem); background: var(--paper); box-shadow: 10px 10px 0 var(--black); }
form label { display: block; font: 700 1rem var(--cond); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .35rem; }
form input:not([type=checkbox]), form select, form textarea { width: 100%; min-height: 52px; padding: .7rem .9rem; border: var(--line); border-radius: 0; background: #fff; color: var(--black); font: inherit; }
form textarea { min-height: 170px; resize: vertical; }
form :is(input, select, textarea):focus { outline: 4px solid var(--safelight); outline-offset: 0; }
form .check { display: flex; gap: .8rem; align-items: flex-start; }
form .check input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--black); }
form .check label { font: 1rem var(--grot); text-transform: none; letter-spacing: 0; margin: 0; }
form .help { font-size: .9rem; color: var(--gray); margin: .35rem 0 0; }
form .error { display: none; color: var(--safelight); font-weight: 700; font-size: .92rem; margin: .35rem 0 0; }
form .bad .error { display: block; }
form .bad :is(input, select, textarea) { border-color: var(--safelight); }
form output { display: none; border: var(--line); border-color: var(--safelight); padding: 1rem; font-weight: 700; }
form output.on { display: block; }

/* footer */
body > footer { background: var(--black); color: var(--paper); padding: 3rem clamp(1.25rem, 4vw, 3rem) 2rem; font-size: .95rem; }
body > footer a, body > footer button { color: var(--paper); }
body > footer a:hover, body > footer button:hover { background: var(--paper); color: var(--black); }
body > footer > div:first-child { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 820px) { body > footer > div:first-child { grid-template-columns: 1fr 1fr; } body > footer > div:first-child > :first-child { grid-column: 1 / -1; } }
body > footer h2 { font-size: 1.1rem; color: var(--safelight); letter-spacing: .1em; margin-bottom: .8rem; }
body > footer ul { list-style: none; padding: 0; margin: 0; }
body > footer li a, body > footer li button { display: inline-flex; align-items: center; min-height: 38px; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
body > footer > div:last-child { border-top: 1px solid #3a3a37; margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font: 700 .85rem var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #a5a5a0; }

/* consent: native dialog, top strip */
dialog#consent { position: fixed; inset: 0 0 auto 0; width: 100%; max-width: none; margin: 0; border: 0; border-bottom: 6px solid var(--safelight); background: var(--black); color: var(--paper); padding: 1.4rem clamp(1.25rem, 4vw, 3rem); z-index: 90; }
dialog#consent[open] { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; align-items: center; }
@media (max-width: 860px) { dialog#consent[open] { grid-template-columns: 1fr; } }
dialog#consent h2 { font-size: 1.8rem; margin-bottom: .3rem; }
dialog#consent p { margin: 0; color: #cfcfca; }
dialog#consent a { color: var(--paper); }
dialog#consent .row { margin-top: 0; }
dialog#consent .do { background: var(--paper); color: var(--black); border-color: var(--paper); min-height: 48px; }
dialog#consent .do.alt { background: transparent; color: var(--paper); }
dialog#consent .do:hover { background: var(--safelight); border-color: var(--safelight); color: #fff; }
dialog#consent fieldset { grid-column: 1 / -1; border: 2px solid #3a3a37; margin: 0; padding: 1rem; display: none; }
dialog#consent fieldset.on { display: flex; flex-wrap: wrap; gap: .4rem 2rem; align-items: center; }
dialog#consent legend { font: 700 1rem var(--cond); text-transform: uppercase; letter-spacing: .1em; padding: 0 .4rem; }
dialog#consent fieldset label { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
dialog#consent fieldset input { width: 22px; height: 22px; accent-color: var(--safelight); }
.room { margin: 0; }
.room img, .page-photo { width: 100%; object-fit: cover; display: block; }
.room img { height: min(72vh, 680px); }
.page-photo { height: min(40vh, 280px); margin: 1rem 0 1.2rem; }
.photo-credit { display: block; max-width: 40rem; font: 400 .75rem/1.4 var(--grot); margin-top: .3rem; }
