/* waking ideas — edition 2026
   the hanging file */

:root {
  --desk: #1e4d5c;
  --desk-deep: #163944;
  --manila: #e6d3b0;
  --spine: #c4a574;
  --paper: #f7f6f2;
  --cream: #fbfaf7;
  --paper-tooth: url("assets/paper-tooth.jpg");
  --paper-noise: url("assets/paper-noise.svg");
  --ink: #1c1916;
  --ink-soft: #4a453e;
  --dawn: #e07038;
  --sea: #4a8ba0;
  --lavender: #a78bbe;
  --peach: #e8b496;
  --graphite: #6b6560;
  --foam: #d5e0e3;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 40px 70px rgba(0, 0, 0, 0.22);
  --type-display: "Newsreader", "Times New Roman", serif;
  --type-mono: "IBM Plex Mono", ui-monospace, monospace;
  --type-marker: "Permanent Marker", "Anton", cursive;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--desk-deep);
}

body {
  font-family: var(--type-display);
  font-optical-sizing: auto;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--cream);
  padding: 8px 12px;
}

/* ---------- desk (the site) ---------- */

body.desk {
  position: relative;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 700px at 18% 20%, rgba(255, 220, 170, 0.07), transparent 55%),
    radial-gradient(900px 600px at 90% 110%, rgba(0, 0, 0, 0.28), transparent 50%),
    var(--desk);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  overflow-x: hidden;
}

body.desk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100dvh;
  background-image: url("assets/paper-dawn.jpg");
  background-size: cover;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- folder ---------- */

.folder {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100dvh;
  flex-shrink: 0;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.cover {
  position: relative;
  z-index: 3;
  width: 180px;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-color: var(--manila);
  background-image: var(--paper-tooth);
  background-size: 440px;
  background-blend-mode: multiply;
  color: var(--ink);
  text-align: left;
  border-radius: 2px 0 0 2px;
  overflow: hidden;
  box-shadow: inset -8px 0 12px rgba(90, 60, 20, 0.12);
}

.cover:focus-visible {
  outline: 2px solid var(--dawn);
  outline-offset: -2px;
}

.spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 26px;
  background: linear-gradient(90deg, #b89564, var(--spine) 40%, #d4b586);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.25);
}

.spine::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--desk-deep);
  opacity: 0.45;
  box-shadow: 0 200px 0 var(--desk-deep);
}

.spine-text {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  white-space: nowrap;
}

.ghost {
  position: absolute;
  left: 52%;
  top: 50%;
  font-family: "Anton", Impact, sans-serif;
  font-size: 8.4dvh;
  line-height: 0.84;
  writing-mode: vertical-rl;
  transform: translate(-50%, -50%) rotate(180deg);
  color: var(--ink);
  opacity: 0.08;
  pointer-events: none;
  letter-spacing: -0.04em;
  user-select: none;
  white-space: nowrap;
}

.cover-meta {
  position: absolute;
  right: 12px;
  bottom: 16px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* ---------- tabs (under the open sheet, peeking right) ---------- */

.tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  margin-left: -10px;
}

.tab {
  --tab: var(--graphite);
  position: relative;
  z-index: 2;
  width: 80px;
  min-height: 100px;
  margin: 0;
  padding: 14px 10px 14px 16px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: var(--tab);
  color: var(--cream);
  font-family: var(--type-mono);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
  transition: width 0.28s var(--ease), transform 0.28s var(--ease);
}

.tab.ink {
  color: var(--ink);
}

.tab::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--desk-deep);
  opacity: 0.28;
}

.tab:hover,
.tab:focus-visible {
  z-index: 4;
  width: 96px;
  outline: none;
}

.tab[aria-selected="true"] {
  z-index: 4;
  width: 98px;
  transform: translateX(10px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.tab-tall {
  min-height: 132px;
}

/* ---------- sheet ---------- */

.sheet {
  --wash: var(--paper);
  position: relative;
  z-index: 3;
  width: 540px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--wash);
  border-radius: 0 2px 2px 0;
  box-shadow: 8px 0 16px rgba(0, 0, 0, 0.16);
  transition: width 1.75s var(--ease), background-color 1.85s var(--ease);
}

.folder.is-open {
  width: calc(100vw - 88px);
  max-width: none;
}

.folder.is-open .sheet {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--paper-tooth);
  background-size: 420px;
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.sheet[data-theme="journal"] { --wash: #c7d6d9; }
.sheet[data-theme="pictures"] { --wash: #e7ecee; }
.sheet[data-theme="listening"] { --wash: #d9cce3; }
.sheet[data-theme="kitchen"] { --wash: #e59a55; }
.sheet[data-theme="work"] { --wash: #ebe4d6; }
.sheet[data-theme="about"] { --wash: var(--paper); }

.panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: auto;
}

.panel.is-active {
  display: block;
}

.panel[hidden] {
  display: none !important;
}

.panel-stream {
  overflow: hidden;
}

/* ---------- home ---------- */

.home {
  height: 100%;
  overflow: auto;
}

.home-index.note-wrap {
  height: 100%;
  padding: 24px 28px 20px;
}

.home-word {
  margin: 4px 0 0;
  font-size: clamp(2.1rem, 5vw, 2.6rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.home-index .lede {
  margin: 10px 0 22px;
  font-size: 1.2rem;
}

.tease-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tease-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-top: 8px;
}

.tease-col h2 {
  margin: 0 0 4px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.tease-col h2 a {
  color: var(--dawn);
  text-decoration: none;
}

.tease-col h2 a:hover {
  text-decoration: underline;
}

.tease-col ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tease-col ol a {
  display: grid;
  grid-template-columns: 4.4em 1fr;
  gap: 8px 10px;
  padding: 5px 0;
  border-top: 1px dashed rgba(28, 25, 22, 0.14);
  text-decoration: none;
  align-items: baseline;
}

.tease-col time {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.tease-col span {
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-index .tease-col span {
  -webkit-line-clamp: 2;
}

.tease-col ol a:hover span {
  color: var(--dawn);
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, 128px);
  gap: 12px 16px;
  margin-top: 16px;
  justify-content: start;
}

.polaroid {
  background: #fff;
  padding: 7px 7px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transform: rotate(-1.6deg);
}

.polaroid:nth-child(2) { transform: rotate(1.7deg); }
.polaroid:nth-child(3) { transform: rotate(1.2deg); }
.polaroid:nth-child(4) { transform: rotate(-2.1deg); }

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #ece8e0;
}

.polaroid span {
  display: block;
  padding: 8px 4px 10px;
  font-family: var(--type-marker);
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  color: var(--ink);
}

.polaroid:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 14px 24px rgba(0, 0, 0, 0.14);
}

.home .spread-copy {
  overflow: auto;
}

.files-wrap::after,
.about-wrap::after,
.pictures-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--paper-tooth);
  background-size: 440px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.files-wrap,
.about-wrap,
.pictures-wrap {
  position: relative;
}

.files-wrap > *,
.about-wrap > *,
.pictures-wrap > * {
  position: relative;
  z-index: 1;
}

.wordmark {
  margin: 0;
  font-family: var(--type-display);
  font-weight: 450;
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.tagline {
  margin: 18px 0 0;
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--ink-soft);
}

.since {
  margin: 36px 0 0;
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ---------- spreads (themed posts) ---------- */

.spread-wrap {
  height: 100%;
  padding: 24px;
}

.spread {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100%;
  background-color: var(--cream);
  background-image: var(--paper-tooth);
  background-size: 440px;
  background-blend-mode: multiply;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 24px rgba(0, 0, 0, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 74px), calc(100% - 74px) 100%, 0 100%);
}

.spread-photo {
  margin: 0;
  min-height: 420px;
  overflow: hidden;
}

.spread-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.spread-photo {
  display: block;
  color: inherit;
}

.spread-copy {
  padding: 52px 56px 88px 48px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.spread-copy time,
.kicker {
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.kicker {
  margin: 10px 0 0;
}

.pull {
  margin: 22px 0 20px;
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.spread-copy p {
  margin: 0 0 0.9em;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.spread-copy p:last-child {
  margin-bottom: 0;
}

.more {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dawn);
}

.more:hover {
  text-decoration: underline;
}

.sticky {
  --tilt: -6deg;
  position: relative;
  display: inline-block;
  margin-top: auto;
  margin-bottom: 8px;
  padding: 26px 22px 20px;
  min-width: 7.2em;
  max-width: 8.6em;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0 13px, transparent 18px),
    repeating-linear-gradient(
      -8deg,
      transparent,
      transparent 11px,
      rgba(180, 140, 20, 0.04) 11px,
      rgba(180, 140, 20, 0.04) 12px
    ),
    #f3e15c;
  color: #1a1612;
  text-decoration: none;
  font-family: var(--type-marker);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
  transform: rotate(var(--tilt));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    1px 1px 0 rgba(90, 70, 10, 0.06),
    0 12px 20px rgba(40, 28, 8, 0.2);
  z-index: 4;
}

.sticky::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  background: linear-gradient(180deg, rgba(70, 50, 10, 0.1), rgba(70, 50, 10, 0.02) 70%, transparent);
  pointer-events: none;
}

.sticky span {
  display: block;
  text-shadow: 0.4px 0.6px 0 rgba(28, 25, 22, 0.18);
}

.sticky:hover,
.sticky:focus-visible {
  transform: rotate(-2deg) translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 26px rgba(40, 28, 8, 0.26);
  outline: none;
}

.spread > .sticky {
  position: absolute;
  left: 52%;
  bottom: 84px;
  margin: 0;
  transform: translateX(-42%) rotate(var(--tilt));
}

.spread > .sticky:hover,
.spread > .sticky:focus-visible {
  transform: translateX(-42%) rotate(-2deg) translateY(-4px);
}

.note-wrap .sticky {
  align-self: flex-start;
  margin-left: 4px;
}

.sheet-num {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.4;
  pointer-events: none;
  z-index: 3;
}

.note-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  background-image: var(--paper-tooth);
  background-size: 440px;
  background-blend-mode: multiply;
  padding: 64px 72px 96px;
  overflow: auto;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 24px rgba(0, 0, 0, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 74px), calc(100% - 74px) 100%, 0 100%);
}

.note-wrap time,
.note-wrap .kicker {
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.note-wrap .kicker {
  margin: 10px 0 0;
}

.note-wrap .pull {
  max-width: 22em;
}

.note-wrap p {
  max-width: 36em;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.shorts-day {
  display: block;
  margin: 0 0 8px;
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.short-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: 42em;
}

.short-item {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 8px 20px;
  padding: 18px 0;
  border-top: 1px dashed rgba(28, 25, 22, 0.16);
}

.short-item:first-child {
  border-top: 0;
  padding-top: 4px;
}

.short-time {
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.65;
  padding-top: 0.35em;
}

.short-body p {
  margin: 0 0 0.6em;
  max-width: none;
  font-size: 1.15rem;
  line-height: 1.5;
}

.short-body p:last-child {
  margin-bottom: 0;
}

.listen {
  margin: 0 0 10px;
}

.listen-track {
  margin: 0 0 2px;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.listen-album {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.listen-credits {
  margin: 0 0 12px;
  display: grid;
  gap: 3px 0;
}

.listen-credits div {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: 8px 14px;
  align-items: baseline;
}

.listen-credits dt {
  margin: 0;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.listen-credits dd {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.listen-tops-label {
  margin: 12px 0 4px;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.listen-tops {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.listen-tops li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 28em;
  padding: 3px 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.listen-plays {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  opacity: 0.7;
}

.short-media {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  max-width: 28rem;
}

.short-media figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ece8e0;
}

.short-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-media.count-1 {
  grid-template-columns: 1fr;
  max-width: 22rem;
}

.short-media.count-2 {
  grid-template-columns: 1fr 1fr;
}

.short-media.count-3,
.short-media.count-4 {
  grid-template-columns: 1fr 1fr;
}

/* ---------- paper stack ---------- */

.stack {
  position: relative;
  height: 100%;
  padding: 24px 44px 32px 24px;
}

.stack-edges {
  position: absolute;
  inset: 30px 18px 14px 30px;
  z-index: 0;
  pointer-events: none;
}

.stack-edges span {
  position: absolute;
  inset: 0;
  background-color: #f4f2ec;
  background-image: var(--paper-tooth);
  background-size: 440px;
  background-blend-mode: multiply;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.stack[data-depth="0"] .stack-edges {
  display: none;
}

.stack[data-depth="1"] .stack-edges span:nth-child(1) { transform: translate(7px, 7px); }
.stack[data-depth="1"] .stack-edges span:nth-child(n+2) { display: none; }

.stack[data-depth="2"] .stack-edges span:nth-child(1) { transform: translate(12px, 12px); }
.stack[data-depth="2"] .stack-edges span:nth-child(2) { transform: translate(6px, 6px); }
.stack[data-depth="2"] .stack-edges span:nth-child(n+3) { display: none; }

.stack[data-depth="3"] .stack-edges span:nth-child(1) { transform: translate(16px, 16px); }
.stack[data-depth="3"] .stack-edges span:nth-child(2) { transform: translate(10px, 10px); }
.stack[data-depth="3"] .stack-edges span:nth-child(3) { transform: translate(5px, 5px); }

.paper-slot {
  position: relative;
  z-index: 1;
  height: 100%;
}

.paper-face {
  position: relative;
  height: 100%;
}

.paper-outgoing {
  position: absolute;
  inset: 0;
  z-index: 4;
  height: 100%;
  pointer-events: none;
  transform-origin: 100% 100%;
  will-change: transform, opacity;
}

.paper-outgoing.is-leaving {
  transform: rotate(-9deg) translate(5%, 12%);
  opacity: 0;
  transition:
    transform 0.58s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.paper-face.is-incoming {
  animation: paper-settle 0.62s cubic-bezier(0.22, 0.8, 0.2, 1);
}

@keyframes paper-settle {
  from {
    opacity: 0.55;
    transform: translate(-6px, -8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dogear {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dogear-fold {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 74px;
  height: 74px;
  background-color: #d4c19a;
  background-image:
    linear-gradient(225deg, #9a8358 0%, #c4ae86 34%, #efe3c8 70%, #c8b48a 100%),
    url("assets/paper-dawn.jpg");
  background-size: cover;
  background-blend-mode: multiply;
  clip-path: polygon(0 0, 0 100%, 100% 0);
  box-shadow: -8px -6px 12px rgba(40, 28, 8, 0.2);
  transform-origin: 0 100%;
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease);
}

.dogear-fold::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 104px;
  height: 2px;
  background: linear-gradient(90deg, rgba(70, 50, 20, 0.35), rgba(70, 50, 20, 0.05));
  transform-origin: left bottom;
  transform: rotate(-45deg);
}

.dogear:hover .dogear-fold,
.dogear:focus-visible .dogear-fold {
  transform: rotate(-6deg) translate(2px, -3px);
  filter: brightness(1.07);
}

.dogear:focus-visible {
  outline: none;
}

.stack.is-flipping .dogear {
  pointer-events: none;
}

.stack.is-flipping .dogear-fold {
  transform: rotate(-20deg) translate(8px, -12px);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.paper-face .spread-wrap,
.paper-outgoing .spread-wrap {
  height: 100%;
  padding: 0;
}

.paper-face .spread,
.paper-outgoing .spread {
  height: 100%;
  min-height: 100%;
}

.paper-face .spread-copy,
.paper-outgoing .spread-copy {
  overflow: auto;
}

.peek-newer {
  position: absolute;
  z-index: 3;
  top: 22%;
  left: 8px;
  width: 18px;
  height: 56%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.peek-newer[hidden] {
  display: none;
}

.peek-newer:hover,
.peek-newer:focus-visible {
  background: linear-gradient(270deg, transparent, rgba(28, 25, 22, 0.06));
  outline: none;
}

.slip-toggle {
  position: absolute;
  z-index: 6;
  top: 6px;
  left: 24px;
  border: 0;
  padding: 7px 12px 6px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.16);
}

.slip-toggle:hover,
.slip-toggle:focus-visible {
  background: #fff;
  outline: none;
}

.slip {
  position: absolute;
  z-index: 7;
  top: 42px;
  left: 24px;
  width: min(300px, 72%);
  max-height: calc(100% - 64px);
  overflow: auto;
  padding: 18px 18px 22px;
  background-color: #f7f5f0;
  background-image: var(--paper-tooth);
  background-size: 320px;
  background-blend-mode: multiply;
  box-shadow: 4px 10px 24px rgba(0, 0, 0, 0.18);
}

.slip[hidden] {
  display: none;
}

.slip-hed {
  margin: 0 0 12px;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

.slip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slip-year {
  margin: 14px 0 4px;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.4;
}

.slip-list button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px dashed rgba(28, 25, 22, 0.18);
  background: none;
  color: var(--ink);
  font-family: var(--type-display);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.slip-list button.is-current {
  color: var(--dawn);
  font-style: italic;
}

.slip-list button:hover,
.slip-list button:focus-visible {
  color: var(--dawn);
  outline: none;
}

.slip-more {
  margin-top: 12px;
}

.slip-more button {
  border-bottom: 0;
  color: var(--dawn);
  font-style: italic;
}

/* ---------- work files ---------- */

.files-wrap {
  padding: 52px 56px 36px;
}

.files-wrap h1,
.about-wrap h1,
.pictures-wrap h1 {
  margin: 0 0 8px;
  font-weight: 450;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 36px;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.files li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px 18px;
  padding: 20px 0;
  border-top: 1px dashed rgba(28, 25, 22, 0.22);
  align-items: baseline;
}

.files li:last-child {
  border-bottom: 1px dashed rgba(28, 25, 22, 0.22);
}

.file-year {
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.files h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.files p {
  grid-column: 2 / 3;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.files a {
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dawn);
}

.files a:hover {
  text-decoration: underline;
}

/* ---------- pictures ---------- */

.pictures-wrap {
  padding: 40px 40px 28px;
}

.contact-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.contact-sheet figure {
  margin: 0;
  background: #fff;
  padding: 6px 6px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.contact-sheet img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.contact-sheet figcaption {
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  padding: 6px 2px 0;
}

/* ---------- pictures drawer + prints ---------- */

.drawer .lede {
  max-width: 22em;
  margin: 0 0 18px;
}

.spread-copy .index-hed {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.spread-copy .set-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px 10px;
  padding-bottom: 4px;
  max-width: none;
}

.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 14px 12px;
  padding-bottom: 88px;
}

.set-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.set-card figure {
  margin: 0;
  background: #fff;
  padding: 5px 5px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.06);
}

.set-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.set-card span {
  display: block;
  margin-top: 7px;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.set-card b {
  display: block;
  font-family: var(--type-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  opacity: 0.5;
}

.set-card:hover figure {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 10px 20px rgba(0, 0, 0, 0.08);
}

.print-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px 40px 88px;
  background-color: var(--cream);
  background-image: var(--paper-tooth);
  background-size: 440px;
  background-blend-mode: multiply;
  overflow: auto;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 74px), calc(100% - 74px) 100%, 0 100%);
}

.print-wrap .kicker {
  margin: 0 0 14px;
}

.print-back {
  color: var(--dawn);
  text-decoration: none;
}

.print-back:hover {
  text-decoration: underline;
}

.print-mount {
  margin: 0 auto 12px;
  background: #fff;
  padding: 10px 10px 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 14px 28px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.print-mount img {
  width: 100%;
  height: 100%;
  max-height: 52vh;
  object-fit: contain;
  display: block;
  margin: auto;
}

.print-catalog {
  margin: 0 auto 2px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.print-file {
  margin: 0 auto 10px;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  opacity: 0.45;
  text-align: center;
}

.print-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 6px 0 4px;
  margin-top: auto;
}

.print-strip a {
  flex: 0 0 54px;
  height: 54px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.print-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.print-strip a.is-current {
  outline: 2px solid var(--dawn);
  outline-offset: 1px;
}

.out-drawer {
  margin: 28px 0 0;
}

.out-drawer a {
  font-family: var(--type-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dawn);
  text-decoration: none;
}

.out-drawer a:hover {
  text-decoration: underline;
}

/* ---------- film roll ---------- */

.sheet[data-theme="film"] { --wash: #f0e4cf; }

.film-wrap {
  padding: 44px 48px 96px;
  max-width: 1180px;
  margin: 0 auto;
}

.film-wrap .index-hed {
  margin: 8px 0 4px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.film-wrap .lede {
  margin: 0 0 30px;
  max-width: 24em;
}

.film-year {
  margin: 0 0 30px;
}

.film-year h2 {
  margin: 0 0 10px;
  font-family: var(--type-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.film-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.film-row {
  display: flex;
  gap: 6px;
}

.film-cell {
  flex: 0 0 auto;
  min-width: 0;
}

.film-print {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.06);
}

.film-print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.film-print:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 10px 20px rgba(0, 0, 0, 0.08);
}

.film-print:focus-visible {
  outline: 2px solid var(--dawn);
  outline-offset: 2px;
}

.film-date {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 8px 5px;
  font-family: var(--type-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(28, 25, 22, 0.62));
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-print:hover .film-date,
.film-print:focus-visible .film-date {
  opacity: 1;
}

/* ---------- about ---------- */

.about-wrap {
  padding: 64px 72px 48px;
  max-width: 38em;
}

.about-wrap p {
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-wrap p + p {
  margin-top: 0.9em;
}

.colophon {
  margin-top: 2.4em;
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.colophon a {
  color: var(--dawn);
  text-decoration: none;
}

.colophon a:hover {
  text-decoration: underline;
}

/* ---------- hint ---------- */

.hint {
  position: fixed;
  z-index: 1;
  left: 860px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.45;
  transition: opacity 0.4s var(--ease);
}

.hint.is-hidden,
.folder.is-open ~ .hint {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.identity-link {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 5;
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.4;
}

.identity-link:hover {
  opacity: 0.85;
  color: var(--peach);
}

/* ---------- brand spec page ---------- */

body.spec {
  background: var(--desk);
  color: var(--cream);
  padding: 0;
}

.spec-hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 8vw;
  align-items: center;
  padding: 8vh 8vw 6vh;
}

.spec-hero img.mark {
  width: 100%;
  max-width: 380px;
  border-radius: 4px;
}

.spec-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--cream);
}

.spec-hero .tagline {
  color: var(--peach);
  font-size: 1.4rem;
}

.spec-main,
.below {
  background-color: var(--cream);
  background-image: var(--paper-tooth);
  background-size: 440px;
  background-blend-mode: multiply;
  color: var(--ink);
  padding: 72px 8vw 120px;
}

.below {
  width: 100%;
  box-sizing: border-box;
}

.below[hidden] {
  display: none !important;
}

.spec-main h2,
.below h2 {
  margin: 0 0 8px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dawn);
  font-weight: 500;
}

.spec-main h3,
.below h3 {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 450;
  letter-spacing: -0.03em;
}

.longform-hed {
  max-width: 920px;
  margin: 0 auto 72px;
}

.longform-back {
  display: inline-block;
  margin: 0 0 28px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dawn);
  text-decoration: none;
}

.longform-back:hover {
  text-decoration: underline;
}

.longform-hed .kicker {
  margin: 0 0 12px;
}

.longform-hed h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.longform-hed .pull {
  margin: 0;
  max-width: 22em;
}

.below .block figure {
  margin: 28px 0 8px;
}

.below .block img {
  width: 100%;
  border-radius: 2px;
}

.below .block figcaption {
  margin-top: 10px;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

body.has-below .identity-link {
  color: var(--dawn);
}

.block {
  max-width: 920px;
  margin: 0 auto 72px;
}

.block p,
.block li {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- recipes ---------- */

.recipe {
  margin-top: 28px;
}

.note-wrap .recipe {
  margin-top: 36px;
  max-width: 48em;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  margin: 0 0 28px;
}

.recipe-meta div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: baseline;
}

.recipe-meta dt {
  margin: 0;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.recipe-meta dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.recipe-cols {
  display: grid;
  grid-template-columns: minmax(13em, 0.85fr) 1.2fr;
  gap: 28px 48px;
  align-items: start;
}

.recipe h2,
.below .recipe h2 {
  margin: 0 0 14px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dawn);
  font-weight: 500;
}

.recipe h3,
.below .recipe h3,
.recipe-group {
  margin: 18px 0 8px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  font-weight: 500;
  color: var(--ink);
}

.recipe h3:first-child,
.recipe-ings-col h3:first-of-type {
  margin-top: 0;
}

.recipe-ings,
.below .recipe-ings {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.recipe-ings li {
  padding: 6px 0;
  border-top: 1px dashed rgba(28, 25, 22, 0.14);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
}

.recipe-ings li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ing-split {
  display: grid;
  grid-template-columns: 6.6em 1fr;
  gap: 8px 12px;
  align-items: baseline;
}

.ing-amount {
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.recipe-method ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.recipe-method li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0 0 16px 2.4em;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.recipe-method li:last-child {
  padding-bottom: 0;
}

.recipe-method li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.28em;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dawn);
}

.recipe-note {
  margin: 28px 0 0;
  font-style: italic;
  max-width: 36em;
  color: var(--ink-soft);
}

.recipe-hero {
  margin: 0 0 28px;
}

.recipe-hero img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: 1px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 40px;
}

.recipe-grid.count-1 {
  grid-template-columns: 1fr;
  max-width: 22rem;
}

.recipe-grid figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ece8e0;
}

.recipe-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe.is-rich .recipe-cols {
  grid-template-columns: 1fr;
  gap: 42px;
}

.recipe.is-rich .recipe-ing-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
}

.recipe-method li p {
  margin: 0;
}

.recipe-method li.has-photo,
.recipe-method li.has-photos {
  padding-bottom: 28px;
}

.recipe-method li.has-photo {
  display: grid;
  grid-template-columns: 1fr minmax(11em, 0.52fr);
  gap: 12px 24px;
  align-items: start;
}

.recipe-method li.has-photo .step-photo {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  overflow: hidden;
}

.recipe-method li.has-photo .step-photo img {
  width: 100%;
  height: 100%;
  max-height: 16rem;
  object-fit: cover;
  display: block;
}

.step-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}

.step-photos figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
}

.step-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.below .recipe {
  margin-top: 0;
}

.below .recipe-block {
  max-width: 920px;
}

/* ---------- section index ---------- */

.index-sheet .index-hed,
.drawer .index-hed {
  margin: 8px 0 28px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.index-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  max-width: 46em;
  padding-bottom: 8px;
}

.index-sheet .sticky {
  margin-top: 32px;
  flex-shrink: 0;
}

.index-cols h2,
.below .archive-cal > h2,
.below .archive-index > h2 {
  margin: 0 0 12px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dawn);
  font-weight: 500;
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-list a {
  display: grid;
  grid-template-columns: 7.6em 1fr;
  gap: 10px 14px;
  padding: 8px 0;
  border-top: 1px dashed rgba(28, 25, 22, 0.14);
  text-decoration: none;
  align-items: baseline;
}

.index-list a:hover span,
.archive-month a:hover span:last-child {
  color: var(--dawn);
}

.index-list time {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.index-list span {
  font-size: 1.05rem;
  line-height: 1.3;
}

.index-empty {
  margin: 0;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.7;
}

.cal-year {
  margin: 0 0 28px;
  overflow-x: auto;
}

.cal-year h3,
.below .cal-year h3 {
  margin: 0 0 10px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
}

.cal-months,
.cal-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 11px;
  gap: 3px;
}

.cal-months {
  margin: 0 0 5px;
  min-height: 14px;
}

.cal-months span {
  font-family: var(--type-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.55;
  white-space: nowrap;
}

.cal-grid {
  grid-template-rows: repeat(7, 11px);
}

.cal-day {
  width: 11px;
  height: 11px;
  border-radius: 1px;
  background: rgba(28, 25, 22, 0.07);
  display: block;
}

.cal-day.is-out {
  background: transparent;
}

.cal-day.heat-1 { background: #ead8c2; }
.cal-day.heat-2 { background: #d4a07a; }
.cal-day.heat-3 { background: var(--dawn); }
.cal-day.heat-4 { background: var(--desk); }

.cal-day.is-lit:hover {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}

.archive-year {
  margin: 0 0 48px;
}

.below .archive-year h2 {
  margin: 0 0 8px;
  font-family: var(--type-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
  font-weight: 450;
}

.archive-month h3,
.below .archive-month h3 {
  margin: 18px 0 6px;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.archive-month ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-month a {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px dashed rgba(28, 25, 22, 0.14);
  text-decoration: none;
  align-items: baseline;
}

.archive-day {
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  opacity: 0.7;
}

.archive-month a span:last-child {
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink);
}

.block ul {
  padding-left: 1.2em;
}

.palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.swatch {
  min-height: 120px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px;
}

.swatch b {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.swatch span {
  font-family: var(--type-mono);
  font-size: 10px;
  opacity: 0.75;
}

.on-dark { color: var(--cream); }
.on-ink { color: var(--ink); }

.type-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px dashed rgba(28, 25, 22, 0.22);
  align-items: baseline;
}

.type-row:last-child {
  border-bottom: 1px dashed rgba(28, 25, 22, 0.22);
}

.type-label {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
}

.sample-display {
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.sample-italic {
  font-style: italic;
  font-size: 1.6rem;
  margin: 0;
}

.sample-mono {
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.pair figure {
  margin: 0;
}

.pair img {
  width: 100%;
  border-radius: 2px;
}

.pair figcaption {
  margin-top: 10px;
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.rules h3 {
  font-size: 1.3rem;
}

.spec-nav {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.spec-nav a {
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peach);
  text-decoration: none;
}

.spec-nav a:hover {
  text-decoration: underline;
}

/* ---------- motion ---------- */

.folder.no-motion .sheet,
.folder.no-motion .tab,
.folder.no-motion .hint {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .sheet,
  .tab,
  .hint,
  .dogear-fold,
  .paper-outgoing.is-leaving {
    transition: none;
  }

  .paper-face.is-incoming {
    animation: none;
  }
}

/* ---------- mobile ---------- */

@media (max-width: 860px) {
  body.desk {
    padding: 12px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .folder,
  .folder.is-open {
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - 24px);
    width: 100%;
    max-width: none;
  }

  .cover {
    width: 100%;
    height: 72px;
    border-radius: 2px 2px 0 0;
    box-shadow: inset 0 -8px 12px rgba(90, 60, 20, 0.1);
  }

  .spine {
    width: 100%;
    height: 10px;
    inset: 0 0 auto 0;
    background: linear-gradient(#b89564, var(--spine));
  }

  .spine::before {
    top: 50%;
    left: 18px;
    margin: -3.5px 0 0;
    box-shadow: 120px 0 0 var(--desk-deep);
  }

  .spine-text {
    writing-mode: horizontal-tb;
    transform: none;
    left: 50%;
    top: 50%;
    font-size: 8px;
  }

  .ghost {
    display: none;
  }

  .cover-meta {
    right: 14px;
    bottom: auto;
    top: 28px;
  }

  .tabs {
    flex-direction: row;
    justify-content: stretch;
    gap: 4px;
    padding: 0 10px 4px;
    margin: -2px 0 0;
    overflow: visible;
    background: transparent;
  }

  .tab,
  .tab-tall {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    min-height: 52px;
    height: auto;
    border-radius: 0 0 9px 9px;
    padding: 8px 4px 12px;
  }

  .tab:hover,
  .tab:focus-visible,
  .tab[aria-selected="true"] {
    width: auto;
    transform: translateY(5px);
  }

  .tab::after {
    top: auto;
    bottom: 6px;
    right: 50%;
    margin-right: -3px;
  }

  .sheet,
  .folder.is-open .sheet {
    width: 100%;
    min-height: 58vh;
    border-radius: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  }

  .panel,
  .panel.is-active {
    position: relative;
    inset: auto;
  }

  .panel.is-active {
    min-height: 58vh;
  }

  .spread {
    grid-template-columns: 1fr;
  }

  .spread-photo {
    height: 220px;
  }

  .spread > .sticky {
    position: absolute;
    left: 16px;
    bottom: auto;
    top: 148px;
    margin: 0;
    transform: rotate(-5deg);
  }

  .spread > .sticky:hover,
  .spread > .sticky:focus-visible {
    transform: rotate(-2deg) translateY(-3px);
  }

  .sticky {
    font-size: 1.45rem;
    padding: 22px 18px 16px;
  }

  .stack {
    padding: 16px 16px 56px;
  }

  .peek-newer {
    top: auto;
    bottom: 8px;
    left: 16px;
    height: 40px;
    width: 40%;
  }

  .dogear {
    width: 72px;
    height: 72px;
  }

  .dogear-fold {
    width: 64px;
    height: 64px;
  }

  .slip-toggle {
    left: 16px;
  }

  .slip {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .note-wrap {
    padding: 36px 28px;
  }

  .print-wrap {
    padding: 28px 18px 72px;
  }

  .print-mount img {
    max-height: 38vh;
  }

  .set-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  .polaroid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 20rem;
  }

  .tease-stack,
  .tease-grid,
  .index-cols,
  .recipe-cols,
  .recipe.is-rich .recipe-cols,
  .recipe.is-rich .recipe-ing-groups,
  .recipe-method li.has-photo {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recipe-method li.has-photo .step-photo {
    grid-column: auto;
    grid-row: auto;
  }

  .recipe-hero img {
    max-height: 16rem;
  }

  .recipe-method li.has-photo .step-photo img {
    max-height: 14rem;
  }

  .files li {
    grid-template-columns: 56px 1fr;
  }

  .files a {
    grid-column: 2;
  }

  .hint {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 16px 0 0 8px;
  }

  .identity-link {
    position: static;
    display: block;
    align-self: flex-end;
    padding: 10px 8px 4px;
  }

  .spec-hero,
  .pair,
  .rules,
  .type-row {
    grid-template-columns: 1fr;
  }

  .spec-hero {
    min-height: auto;
    padding: 6vh 6vw;
  }
}
