/* =========================================================
   aaron-ross.co: "The Writer's Workshop" (Nov 2026)
   An author's notebook on a working desk: paper, ink, a rust
   pen for notes in the margin, sage for the quiet bits.
   Layout: one readable column, wider only for photos and books.
   base.css (shared) loads first; everything here is this site only.
   ========================================================= */

:root {
  color-scheme: light;               /* paper only, by choice */

  /* Palette */
  --paper: #f7f2e8;                  /* the page */
  --paper-deep: #efe7d8;             /* a second sheet: the next book, the form */
  --paper-white: #fffdf8;            /* fields */
  --ink: #25221e;                    /* headlines and body */
  --ink-soft: #5b544a;               /* secondary text */
  --rust: #a3461f;                   /* the pen: buttons, notes, links */
  --rust-dark: #87391a;
  --sage: #5e6b4c;                   /* labels, quiet marks */
  --rule: rgba(37, 34, 30, .14);     /* notebook lines and dividers */

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  /* Map onto the shared base.css tokens */
  --bg: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --brand: var(--rust);
  --brand-2: var(--rust);
  --brand-text: var(--paper-white);
  --line: var(--rule);
  --card: var(--paper-deep);
  --field-bg: var(--paper-white);
  --field-text: var(--ink);
  --field-line: rgba(37, 34, 30, .32);
  --focus: var(--rust);
  --ok: #3f6b3a;
  --error: #a3261f;
  --font-head: var(--serif);
  --font-body: var(--sans);
  --radius: 6px;
  --max: 1080px;
  --read: 62ch;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}
p { color: var(--ink); }
a { color: var(--rust); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust-dark); text-decoration-thickness: 2px; }
em { font-style: italic; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; font-weight: 500; letter-spacing: -.01em; }

/* One gutter rule for every band */
.wrap, .nav, .band > .inner, footer {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: var(--max); margin: 0 auto; }
.read { max-width: var(--read); }
section { padding-block: 0; }

/* Small labels above a section, kept rare */
.label {
  font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--sage); margin: 0 0 10px;
}

/* The pen in the margin */
.note {
  font-family: var(--hand); font-weight: 500; color: var(--rust);
  font-size: 1.6rem; line-height: 1.2;
}

/* ---------- Buttons ---------- */
.btn {
  min-height: 52px; padding: 14px 26px; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: .01em;
  background: var(--rust); color: var(--paper-white); box-shadow: none;
}
.btn:hover { background: var(--rust-dark); color: var(--paper-white); transform: none; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.actions .alt { font-weight: 600; }
.fine { font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- Nav ---------- */
.nav {
  max-width: var(--max); padding-block: 18px; gap: 8px 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.nav .home { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.nav ul { gap: 2px 4px; }
.nav a.link { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink-soft); padding: 6px 10px; border-radius: 4px; }
.nav a.link:hover { color: var(--ink); background: var(--paper-deep); text-decoration: none; }
.nav a.link.say-hi { color: var(--rust); }
@media (max-width: 560px) {
  .nav { padding-block: 12px; }
  .nav .home span { display: inline; }
  .nav ul { width: calc(100% + 10px); justify-content: space-between; flex-wrap: nowrap; margin-left: -5px; }
  .nav a.link { padding: 6px 5px; font-size: 14.5px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px 64px;
  align-items: start; padding-block: 44px 56px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; font-weight: 500;
  font-variation-settings: "opsz" 144; margin: 0;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--rust); }
.hero .note.correction { margin: 16px 0 24px 4px; transform: rotate(-1.5deg); transform-origin: left; display: flex; align-items: flex-start; gap: 8px; max-width: 34ch; font-size: 1.75rem; }
.hero .note.correction svg { flex: none; width: 34px; height: 34px; margin-top: -10px; }
.hero .copy { min-width: 0; }
.hero .copy p { max-width: var(--read); font-size: 19px; }


.photo-taped {
  position: relative; margin: 12px 0 0; background: var(--paper-white); padding: 10px 10px 14px;
  box-shadow: 0 1px 2px rgba(37,34,30,.12), 0 12px 30px rgba(37,34,30,.12);
  transform: rotate(2deg);
}
.photo-taped::before {               /* a strip of masking tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(214, 199, 160, .72); box-shadow: 0 1px 1px rgba(37,34,30,.08);
}
.photo-taped img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.photo-taped figcaption { font-family: var(--hand); font-size: 1.3rem; color: var(--ink-soft); text-align: center; margin-top: 6px; line-height: 1.2; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 56px; gap: 28px; }
  .hero .photo-col { order: -1; }
  .photo-taped { width: 150px; margin-left: 4px; }
  .hero .copy p { font-size: 18px; }
}

/* ---------- Bands (full-width sheets) ---------- */
.band { padding-block: 60px; }
.band > .inner { max-width: var(--max); margin: 0 auto; }
.band.deep { background: var(--paper-deep); }
.band h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 0 0 18px; font-variation-settings: "opsz" 120; }
.band .intro { max-width: var(--read); }
@media (max-width: 560px) { .band { padding-block: 44px; } }

/* ---------- The next book ---------- */
.book-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.book-title h2 { font-style: italic; margin: 0; }
.book-title .note { font-size: 1.35rem; transform: rotate(-3deg); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; align-items: center; }
.book-grid > * { min-width: 0; }

/* Questions written on notebook paper: ruled lines, a margin line in the rust pen */
.questions {
  list-style: none; margin: 0; padding: 4px 0 4px 26px;
  border-left: 1.5px solid color-mix(in srgb, var(--rust) 55%, transparent);
}
.questions li {
  font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--ink);
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.questions li:first-child { padding-top: 4px; }
.talk-titles { font-family: var(--serif); font-size: 17px; color: var(--sage); margin: 0; }
.about-short {}
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } }

/* ---------- Two doors: speaking, something stuck ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; margin-top: 32px; }
.door { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.door img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.door h3 { font-size: 28px; line-height: 1.15; margin-top: 6px; }
.door p { margin: 0; }
.door .actions { margin-top: auto; padding-top: 6px; }
.talks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.talks li { padding-left: 16px; border-left: 2px solid var(--sage); }
.talks strong { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.talks span { display: block; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.said { margin: 4px 0 0; padding: 0; }
.said blockquote { margin: 0; }
.said blockquote p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; margin: 0; }
.said figcaption { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } }

/* ---------- Books ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; margin-top: 24px; max-width: 820px; }
.book { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.book img {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 2px 4px 4px 2px;
  box-shadow: inset 4px 0 6px rgba(0,0,0,.08), 0 2px 3px rgba(37,34,30,.15), 0 14px 26px -10px rgba(37,34,30,.35);
}
.book h3 { font-size: 17px; line-height: 1.25; margin-top: 4px; }
.book .with { font-size: 14px; color: var(--ink-soft); margin: -4px 0 0; }
.book p { font-size: 16px; line-height: 1.5; margin: 0; }
.on-desk { margin-top: 28px; max-width: 46ch; transform: rotate(-1deg); transform-origin: left; }
@media (max-width: 820px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px 64px; align-items: start; }
.about .text { max-width: var(--read); min-width: 0; }
.about .aside { padding-top: 64px; }
.about .aside .note { transform: rotate(-2deg); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about .aside { padding-top: 0; } }

/* ---------- Also (book help, Iron Crown) ---------- */
.also { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 56px; padding: 24px 0 0; margin-top: 32px; border-top: 1px solid var(--rule); max-width: none; }
.also p { margin: 0; padding: 0; border: 0; background: none; font-size: 17px; }
.also strong { font-family: var(--serif); font-weight: 600; }
.also a { font-weight: 600; white-space: nowrap; color: var(--rust); }
.also a::after { content: none; }
@media (max-width: 820px) { .also { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.contact > * { min-width: 0; }
.contact h2 { margin-bottom: 14px; }
.contact .note { margin-top: 18px; transform: rotate(-1.5deg); transform-origin: left; }
.form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; gap: 18px; }
.field label, .topics legend { font-family: var(--sans); font-weight: 600; font-size: 16px; }
.field input, .field textarea { border-radius: 4px; border-width: 1px; }
.chip span { border-radius: 100px; border: 1px solid var(--field-line); background: var(--paper-white); font-family: var(--sans); font-weight: 500; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper-white); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { padding: 18px; } .chips { grid-template-columns: 1fr 1fr; } }

/* ---------- Video and calendar (book page) ---------- */
.video { border-radius: 4px; background: var(--ink); }
.calendly { border: 1px solid var(--rule); border-radius: 4px; }

/* ---------- Book page ---------- */
.page-head { padding-block: 56px 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; max-width: 18ch; font-variation-settings: "opsz" 144; }
.page-head h1 em { color: var(--rust); font-weight: 400; }
.prose { max-width: var(--read); }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 48px 0 14px; }
.helps { list-style: none; padding: 0; margin: 0; }
.helps li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.helps li strong { font-family: var(--serif); font-weight: 600; }
.tbd { background: var(--paper-deep); border-left: 2px solid var(--sage); padding: 18px 22px; margin: 8px 0 0; }
.tbd p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer { max-width: var(--max); margin: 0 auto; padding-block: 40px 48px; border-top: 1px solid var(--rule); text-align: left; font-size: 15px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--rust); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Phones: the four covers sit in one row (titles are on the covers) */
@media (max-width: 560px) {
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .book h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Sumi-e accents: Aaron's own bamboo paintings, an ink stroke, a hanging scroll ---------- */
.sumi { pointer-events: none; user-select: none; height: auto; }

/* Hero: a bamboo stalk growing up behind the taped photo */
.photo-col { position: relative; }
.photo-taped { position: relative; z-index: 1; }
.sumi-hero { position: absolute; z-index: 0; width: 150px; left: -96px; top: 70px; transform: rotate(-4deg); }
@media (max-width: 820px) {
  .sumi-hero { width: 104px; left: 178px; top: -6px; transform: rotate(3deg); }
}

/* Ink brush stroke under section headings */
.band h2::after {
  content: ""; display: block; width: 150px; height: 14px; margin-top: 10px;
  background: url("/img/brush-stroke.webp") left center / contain no-repeat; opacity: .85;
}
.book-title h2::after { width: 130px; }

/* The questions hang on a painted scroll: two wooden rollers, paper between */
.questions {
  position: relative; margin: 14px 12px; padding: 22px 26px 18px;
  background: var(--paper-white); border-left: 0;
  box-shadow: 0 1px 2px rgba(37,34,30,.08), 0 10px 24px -12px rgba(37,34,30,.25);
}
.questions::before, .questions::after {
  content: ""; position: absolute; left: -12px; right: -12px; height: 10px; border-radius: 6px;
  background: linear-gradient(var(--ink), #4a3f33 55%, var(--ink));
}
.questions::before { top: -8px; }
.questions::after { bottom: -8px; }
.questions li:last-child { border-bottom: 0; padding-bottom: 4px; }

/* About: a leafy stalk beside the short version */
.sumi-about { float: right; width: 210px; margin: -20px 0 0 24px; }
.about-wrap::after, #about .also { clear: both; }
@media (max-width: 820px) { .sumi-about { width: 112px; margin: 0 0 0 12px; } }

/* Contact: the long diagonal stalk under the note */
.sumi-contact { display: block; width: 280px; margin: 18px 0 0 -8px; opacity: .95; }
@media (max-width: 820px) { .sumi-contact { width: 170px; margin: 4px 0 -10px auto; } }

/* Book page header */
.page-head { position: relative; }
.sumi-book { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 18px; width: 120px; }
@media (max-width: 560px) { .sumi-book { width: 54px; top: 20px; } .page-head h1 { max-width: 12ch; } }

/* Hero: space under the headline (the margin note used to provide it) */
.hero .copy h1 + p { margin-top: 22px; }

/* Hero and next book are one section now */
.hero .copy h1 + p { margin-top: 14px; }
.hero .working-title { font-size: 1.5rem; margin: 14px 0 0 2px; transform: rotate(-1.2deg); transform-origin: left; }
.hero .working-title + p { margin-top: 18px; }
.band:not(.deep) .form { background: var(--paper-white); }
.hero .copy p:not(.fine):not(.note) { max-width: 50ch; }
@media (min-width: 821px) { .sumi-hero { left: -78px; } }

/* Five-link menu on narrow phones: no breaks inside a link */
.nav a.link { white-space: nowrap; }
@media (max-width: 400px) { .nav a.link { padding: 6px 4px; font-size: 13.5px; } .nav ul { gap: 0; } }

/* "Work with me": one line per offer, same voice as the talk titles */
.ways { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; }
.ways li { font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--sage); padding-left: 14px; border-left: 2px solid var(--sage); }

/* "Also" strip is one item now */
.also { grid-template-columns: 1fr; max-width: 62ch; }
