/* arealjim.com — one reading column with a narrow label rail on wide screens; white paper,
   near-black ink, saffron for links and the line drawing. No framework, no build step. */
:root {
  --paper: #ffffff;
  --ink: #18181b;
  --muted: #62626b;
  --rule: #e6e4df;
  --saffron: #a85d07;
  --saffron-faint: #f6ead9;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Atkinson Hyperlegible Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131315; --ink: #ebe8e1; --muted: #a09e98; --rule: #2b2a2e;
    --saffron: #e9a24c; --saffron-faint: #2e2417; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131315; --ink: #ebe8e1; --muted: #a09e98; --rule: #2b2a2e;
  --saffron: #e9a24c; --saffron-faint: #2e2417; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
  font-optical-sizing: auto;
}
.page {
  max-width: 50rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 2.5rem 3rem;
}

a { color: var(--saffron); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 2px; }

/* top line: name on the left, section links on the right */
.top { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; justify-content: space-between;
       font: 400 0.8rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.top a { color: inherit; text-decoration: none; }
.top a:hover { color: var(--saffron); }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.top .home { color: var(--ink); }

/* intro: words on the left, the drawing on the right */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.5rem 2.5rem; align-items: center; margin: 3rem 0 1rem; }
.intro h1 { font: 500 clamp(1.9rem, 5vw, 2.7rem)/1.18 var(--serif); letter-spacing: -0.015em; margin: 0; max-width: 30rem; text-wrap: balance; }
.intro p { color: var(--muted); margin: 1.1rem 0 0; max-width: 31rem; }
.byline { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.4rem !important;
          font: 400 0.85rem/1 var(--mono); letter-spacing: 0.02em; color: var(--ink) !important; }
.portrait { width: 3.25rem; height: 3.25rem; object-fit: cover; border-radius: 50%; filter: saturate(0.85); }

/* sections: label rail + content */
section { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0 2rem; padding-top: 2.4rem; margin-top: 2.4rem; border-top: 1px solid var(--rule); }
section > h2 { font: 400 0.78rem/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0.15rem 0 0.75rem; }
section > div { min-width: 0; }
section p { margin: 0 0 0.9rem; max-width: 36rem; }
.lead { font-size: 1.15rem; line-height: 1.55; }
.links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font: 400 0.85rem/1.6 var(--mono); }

/* project list */
.work { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.work li { display: grid; gap: 0.1rem; max-width: 36rem; }
.work .t { font-weight: 600; }
.work .t a { color: var(--ink); text-decoration-color: var(--saffron); }
.work .d { color: var(--muted); }
.work .tag { font: 400 0.72rem/1 var(--mono); letter-spacing: 0.04em; color: var(--saffron); margin-left: 0.5rem; white-space: nowrap; }

/* the drawing */
.drawing { margin: 0; }
.drawing canvas { width: 100%; aspect-ratio: 1; display: block; cursor: pointer; border-radius: 50%; }
.drawing canvas:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; }
.drawing figcaption { font: 400 0.72rem/1.5 var(--mono); color: var(--muted); margin-top: 0.4rem; min-height: 2.2em; font-variant-numeric: tabular-nums; }

.sangha { margin-top: 1.6rem !important; padding-left: 1rem; border-left: 2px solid var(--saffron-faint); color: var(--muted); }
.elsewhere { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font: 400 0.85rem/1.6 var(--mono); }

footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
         font: 400 0.75rem/1.6 var(--mono); color: var(--muted); }
footer a { color: inherit; }

/* inner pages: the same type system as the home page (mono labels over a rule, serif titles,
   muted body), so moving between pages doesn't change the voice of the type */
.article { max-width: 38rem; margin-top: 3rem; }
.article h1 { font: 500 clamp(1.9rem, 5vw, 2.7rem)/1.18 var(--serif); letter-spacing: -0.015em; margin: 0 0 1.1rem; text-wrap: balance; }
.article .lead { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }
.article h2 { font: 400 0.78rem/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
              margin: 2.4rem 0 0.9rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.article p, .article li { max-width: 36rem; }
.article ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1.1rem; }
.article li { margin: 0; color: var(--muted); }
.article li strong { display: block; font-weight: 600; color: var(--ink); }
.price { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; font-variant-numeric: tabular-nums; }
.price li { display: flex; gap: 1rem; margin: 0; color: var(--ink); }
.price span:first-child { min-width: 4.5rem; font-family: var(--mono); font-size: 0.9rem; color: var(--saffron); padding-top: 0.15rem; }
.button { display: inline-block; font: 400 0.85rem/1 var(--mono); letter-spacing: 0.02em; padding: 0.8rem 1.1rem; border: 1px solid var(--saffron);
          color: var(--saffron); text-decoration: none; border-radius: 3px; margin: 0.4rem 0.6rem 0.4rem 0; }
.button:hover { background: var(--saffron-faint); }

/* the booking page: one row per kind of session */
.article .options { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--rule); display: block; }
.options li { max-width: none; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1.5rem; align-items: start; }
.options h2 { font: 600 1.0625rem/1.4 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0; padding: 0; border: 0; }
.options .meta { font: 400 0.8rem/1.6 var(--mono); color: var(--saffron); margin: 0.15rem 0 0.4rem; font-variant-numeric: tabular-nums; }
.options p { color: var(--muted); margin: 0; }
.options .button { margin: 0.2rem 0 0; white-space: nowrap; }
@media (max-width: 34rem) { .options li { grid-template-columns: 1fr; } .options .button { justify-self: start; margin-top: 0.6rem; } }
.verse { border-left: 2px solid var(--saffron); padding-left: 1rem; font-style: italic; color: var(--ink); }

@media (max-width: 44rem) {
  /* phones: wider margins and more air between blocks (Jim's wife, 2026-10-27: "a little more negative space") */
  .page { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-top: 2rem; }
  body { line-height: 1.7; }
  .intro { grid-template-columns: 1fr; gap: 2.25rem; margin-top: 2.75rem; }
  .intro p { margin-top: 1.4rem; }
  .drawing { width: min(100%, 16rem); justify-self: center; }
  section { grid-template-columns: 1fr; padding-top: 2.75rem; margin-top: 2.75rem; }
  section > h2 { margin-bottom: 1rem; }
  section p { margin-bottom: 1.2rem; }
  .work { gap: 1.6rem; }
  .links { gap: 0.6rem 1.4rem; margin-bottom: 1.6rem !important; }
  .article { margin-top: 2.75rem; }
  .article h2 { margin-top: 2.6rem; }
  .article .log { gap: 1.1rem; }
  .article .options h2 { margin-top: 0; } /* the phone .article h2 margin was landing on the booking rows */
  footer { margin-top: 3.5rem; gap: 0.6rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* the shipped log: week on the left, one line each */
.article .log { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.article .log li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; margin: 0; max-width: 40rem; }
.log .w { font: 400 0.8rem/1.9 var(--mono); color: var(--saffron); font-variant-numeric: tabular-nums; white-space: nowrap; }
.article .log li { color: var(--ink); }

/* 404: the drawing, a line from the Heart Sutra, the way home */
.article.empty .drawing { width: min(100%, 15rem); margin: 0 0 1.6rem; }
.article.empty blockquote { margin: 0 0 1.4rem; padding-left: 1rem; border-left: 2px solid var(--saffron); }
.article.empty blockquote p { font: italic 400 1.15rem/1.5 var(--serif); margin: 0 0 0.4rem; }
.article.empty blockquote footer { font: 400 0.75rem/1.5 var(--mono); color: var(--muted); margin: 0; padding: 0; border: 0; display: block; }
