/* hanyuna.co press kit — a four-page letter document.
   Unlike the site, this has a fixed palette: the cover is always dark and the
   inner pages always paper. It is meant to print and to be saved as PDF, so
   nothing here follows the viewer's theme. */

:root {
  --paper: #f2efe8;
  --ink: #17150f;
  --dark: #151310;
  --dark-ink: #ece6da;
  --accent: #b4574a;
  --accent-dark: #d8806f;
  --ph: #ddd8cc;
  --pad: 0.62in;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: #e8e4db;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- screen chrome (never prints) ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(242, 239, 232, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 21, 15, .14);
  font: 400 10px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  color: rgba(23, 21, 15, .6);
}
.bar a:hover { color: var(--ink); }
.bar-actions { display: flex; gap: 10px; }
.bar button, .bar .btn-link {
  cursor: pointer;
  border: 1px solid rgba(23, 21, 15, .28);
  background: transparent;
  color: rgba(23, 21, 15, .7);
  padding: 7px 13px;
  font: 500 9.5px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .14em;
}
.bar .btn-link { border-color: var(--accent); color: var(--accent); }
.bar button:hover, .bar .btn-link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.stack { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 26px 16px 60px; }

/* ---------- the page ---------- */

.sheet {
  width: 8.5in;
  height: 11in;
  flex: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .14);
}
.sheet.pad { padding: var(--pad); }
.sheet.dark { background: var(--dark); color: var(--dark-ink); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: .14em;
}

.running {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 21, 15, .18);
  font: 400 9px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .16em;
  color: rgba(23, 21, 15, .55);
}
.running strong { font-weight: 500; color: var(--ink); }

.folio {
  flex: none;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 21, 15, .18);
  font: 400 9px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  color: rgba(23, 21, 15, .5);
}

h2 {
  margin: 0 0 18px;
  font-family: 'Newsreader Display', Georgia, serif;
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -.015em;
}
h2 em { font-style: italic; font-weight: 300; }

.label {
  font: 500 8.5px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  color: rgba(23, 21, 15, .45);
  margin-bottom: 9px;
}

.copy { margin: 0 0 12px; font: 400 11pt/1.65 "IBM Plex Sans", system-ui, sans-serif; color: rgba(23, 21, 15, .78); text-wrap: pretty; }
.copy:last-child { margin-bottom: 0; }

.plate { position: relative; overflow: hidden; background: var(--ph); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- page 1: cover ---------- */

.cover-art { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #2a2622; }
.cover-art .scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56%;
  background: linear-gradient(to top, rgba(21, 19, 16, .94) 0%, rgba(21, 19, 16, .7) 46%, rgba(21, 19, 16, 0) 100%);
}
.cover-text { position: absolute; left: var(--pad); right: var(--pad); bottom: 0.56in; }
.cover-text .site { font: 500 10px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .3em; color: var(--dark-ink); margin-bottom: 26px; }
.cover-text .issue { font: 400 10px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .2em; color: var(--accent-dark); margin-bottom: 16px; }
.cover-text h1 {
  margin: 0;
  font-family: 'Newsreader Display', Georgia, serif;
  font-weight: 200;
  font-size: 74px;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--dark-ink);
}
.cover-text .sub {
  margin: 14px 0 0;
  font-family: 'Newsreader Text', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 23px;
  line-height: 1.35;
  color: rgba(236, 230, 218, .82);
}
.cover-folio {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px var(--pad);
  font: 400 9px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  color: rgba(236, 230, 218, .55);
}

/* ---------- page 2: the model ---------- */

.model-top { flex: none; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; padding-top: 26px; }
.model-top .kicker { font: 400 9.5px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .18em; color: var(--accent); margin-bottom: 14px; }
.model-top h2 { font-size: 38px; }
.model-top .plate { min-height: 3.5in; }

.figures { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(23, 21, 15, .18); border-bottom: 1px solid rgba(23, 21, 15, .18); margin-top: 26px; }
.figures > div { padding: 18px 16px; border-right: 1px solid rgba(23, 21, 15, .14); }
.figures > div:first-child { padding-left: 0; }
.figures > div:last-child { padding-right: 0; border-right: 0; }
.figures .n { font-family: 'Newsreader Text', Georgia, serif; font-weight: 300; font-size: 24px; }
.figures .n.handle { font-size: 20px; }
.figures .sub { font: 400 9.5px/1.5 "IBM Plex Mono", ui-monospace, monospace; color: rgba(23, 21, 15, .55); margin-top: 5px; }

.model-bottom { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 24px; }
.steps { display: flex; flex-direction: column; gap: 9px; font: 400 10pt/1.55 "IBM Plex Sans", system-ui, sans-serif; color: rgba(23, 21, 15, .78); }
.steps b { font: 500 9.5px/1 "IBM Plex Mono", ui-monospace, monospace; color: var(--accent); margin-right: 8px; }
.soon { font-family: 'Newsreader Text', Georgia, serif; font-weight: 300; font-style: italic; font-size: 21px; color: rgba(23, 21, 15, .45); }

/* ---------- page 3: plates ---------- */

.plates-top { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 22px; }
.plates-top h2 { font-size: 34px; line-height: 1.02; margin-bottom: 12px; }
.plates-top .lede { margin: 0 0 10px; font-family: 'Newsreader Text', Georgia, serif; font-weight: 300; font-size: 15pt; line-height: 1.5; text-wrap: pretty; }
.plates-top .caption { margin: 0; font: 400 10pt/1.65 "IBM Plex Sans", system-ui, sans-serif; color: rgba(23, 21, 15, .72); text-wrap: pretty; }
.plates-top .slug { display: flex; gap: 20px; margin-top: 16px; font: 400 9.5px/1.5 "IBM Plex Mono", ui-monospace, monospace; color: rgba(23, 21, 15, .6); }
.plates-top .plate { min-height: 3.2in; }

.plates-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 20px; }
.plates-grid > div { display: flex; flex-direction: column; gap: 8px; }
.plates-grid .plate { flex: 1; }
.plates-grid .cap { font: 400 8.5px/1.4 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; color: rgba(23, 21, 15, .55); }
.plates-grid + .folio { margin-top: 18px; }

/* ---------- page 4: booking ---------- */

.booking-top { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 26px; }
.booking-top h2 { font-size: 42px; line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.booking-top .copy { margin-bottom: 22px; }
.booking-top .plate { min-height: 3.4in; }
.contacts { display: flex; flex-direction: column; gap: 14px; }
.contacts .label { margin-bottom: 6px; }
.contacts .addr { font-family: 'Newsreader Text', Georgia, serif; font-weight: 300; font-size: 21px; }
.contacts .social { font: 400 11px/1.7 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; }

.scopes { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(23, 21, 15, .18); border-bottom: 1px solid rgba(23, 21, 15, .18); margin-top: 26px; }
.scopes > div { padding: 16px 14px; border-right: 1px solid rgba(23, 21, 15, .14); font: 400 10pt/1.5 "IBM Plex Sans", system-ui, sans-serif; color: rgba(23, 21, 15, .78); }
.scopes > div:first-child { padding-left: 0; }
.scopes > div:last-child { padding-right: 0; border-right: 0; }
.scopes .label { margin-bottom: 8px; }

.usage { flex: 1; min-height: 0; padding-top: 22px; }
.usage .label { margin-bottom: 11px; }
.usage p { margin: 0; font: 400 10pt/1.6 "IBM Plex Sans", system-ui, sans-serif; color: rgba(23, 21, 15, .72); max-width: 78ch; text-wrap: pretty; }

/* ---------- print ---------- */

@page { size: 8.5in 11in; margin: 0; }

@media print {
  html, body { width: 8.5in; margin: 0; padding: 0; background: #fff; }
  .bar { display: none; }
  .stack { display: block; padding: 0; gap: 0; }
  .sheet {
    box-shadow: none;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    /* A box exactly equal to the page height rounds over it and spills a blank
       page after every sheet. One pixel under costs nothing and prevents that. */
    height: calc(11in - 1px);
    transform: none !important;
    margin: 0 !important;
  }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  /* Backgrounds and the cover scrim must survive the print pipeline. */
  .sheet, .sheet.dark, .cover-art, .cover-art .scrim, .plate {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------- small screens ---------- */
/* The sheet is a fixed letter page; on a phone it scales down rather than reflows.
   Scoped to `screen`: the print viewport is 8.5in, so an unscoped max-width here
   would match while printing and its padding would push every sheet onto a
   second page. */
@media screen and (max-width: 9in) {
  .stack { padding: 16px 0 40px; }
  .sheet { transform-origin: top center; }
}
