*,*::before,*::after{box-sizing:border-box} :root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)} img{max-width:100%;display:block} [hidden]{display:none!important}
/* Layout: one narrow column, one typeface, plain links. Spacing does the structuring. */
/* Each section has its own colour: amber (now), indigo (writing), olive (notes), chili (kitchen), plum (study), green (work), teal (contact). */
:root {
  --bg: #FBFBF9;
  --fg: #222624;
  --muted: #6B716D;
  --link: #2F5A4C;
  --line: #DDE0DC;
  --c-now: #A0660A;
  --c-writing: #3A4E9C;
  --c-kitchen: #B3352A;
  --c-study: #7A3B74;
  --c-work: #2E6A4E;
  --c-contact: #1F6F78;
  --c-notes: #6A6A1C;
  --paper: #FFFEF7;
  --paper-edge: #E7E2CF;
  --clip: #8C8F8A;
  --tape: rgba(214, 190, 120, .55);
  --shadow: 0 1px 2px rgba(40, 38, 30, .08), 0 4px 12px rgba(40, 38, 30, .06);
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --hl: #F6E3B8;
  --serif: "Literata", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151716; --fg: #E2E5E2; --muted: #969D98; --link: #8DBFAE; --line: #2B2F2D;
    --c-now: #E3A94A; --c-writing: #9DADF0; --c-kitchen: #F08A7C; --c-study: #D59BCF; --c-work: #84C7A5; --c-contact: #7CCBD3; --c-notes: #C9C77A;
    --paper: #1F221F; --paper-edge: #343833; --clip: #9AA09A; --tape: rgba(196, 170, 100, .35); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.25);
    --hl: #4A3A17; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151716; --fg: #E2E5E2; --muted: #969D98; --link: #8DBFAE; --line: #2B2F2D;
  --c-now: #E3A94A; --c-writing: #9DADF0; --c-kitchen: #F08A7C; --c-study: #D59BCF; --c-work: #84C7A5; --c-contact: #7CCBD3; --c-notes: #C9C77A;
    --paper: #1F221F; --paper-edge: #343833; --clip: #9AA09A; --tape: rgba(196, 170, 100, .35); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.25);
  --hl: #4A3A17; color-scheme: dark;
}

body {
  background: var(--bg); color: var(--fg);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.7;
  padding: 0 20px;
}
main { max-width: 36rem; margin: 0 auto; padding-block: 3.5rem 4.5rem; display: grid; gap: 3rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

p { margin: 0; }
h1, h2 { font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: 1.9rem; line-height: 1.2; }
h2 { font-size: 1.25rem; }

nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--fg); text-decoration: underline; }

header, section { display: grid; gap: .9rem; }
h1 span { background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 .1em; }
section { --c: var(--link); }
#now { --c: var(--c-now); } #writing { --c: var(--c-writing); } #kitchen { --c: var(--c-kitchen); }
#study { --c: var(--c-study); } #work { --c: var(--c-work); } #contact, #elsewhere { --c: var(--c-contact); } #notes { --c: var(--c-notes); }
section h2 { color: var(--c); display: flex; align-items: center; gap: .55rem; }
section h2::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); flex: none; }
section a { color: var(--c); }
section a:focus-visible { outline-color: var(--c); }
.now li i { color: var(--c); }
nav a[href="#now"]:hover { color: var(--c-now); } nav a[href="#writing"]:hover { color: var(--c-writing); }
nav a[href="#kitchen"]:hover { color: var(--c-kitchen); } nav a[href="#study"]:hover { color: var(--c-study); }
nav a[href$="#notes"]:hover, nav a[href="notes.html"]:hover { color: var(--c-notes); } nav a[href="#work"]:hover { color: var(--c-work); } nav a[href="#contact"]:hover, nav a[href="#elsewhere"]:hover { color: var(--c-contact); }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.email code { font-family: var(--serif); font-size: 1.05rem; color: var(--c); user-select: all; overflow-wrap: anywhere; }
.email button {
  font: inherit; font-size: .85rem; color: var(--c); background: transparent;
  border: 1px solid var(--c); border-radius: 999px; padding: .15rem .8rem; cursor: pointer;
}
.email button:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.quiet { color: var(--muted); }
.date { font-style: italic; color: var(--muted); font-size: .95rem; }

ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.pieces li { display: grid; gap: .1rem; }
.pieces b { font-weight: 500; }
.pieces span { color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

footer { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

@media (max-width: 520px) {
  body { font-size: 1rem; }
  main { padding-block: 2.5rem 3.5rem; gap: 2.5rem; }
  h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Pictures: real photos when added, a quiet placeholder until then */
.intro { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: start; }
.intro > div { min-width: 0; display: grid; gap: .9rem; }
.portrait { width: 6.5rem; aspect-ratio: 4 / 5; max-width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.filler {
  border: 1px dashed var(--line); border-radius: 4px; color: var(--muted);
  font-style: italic; font-size: .85rem; display: grid; place-items: center; text-align: center; padding: .75rem;
}
.portrait.filler { height: auto; }
/* Clipboard: notes are paper slips under a clip, kitchen photos are taped prints */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.6rem 1.25rem; padding-top: .6rem; }
.slip {
  position: relative; background: var(--paper); border: 1px solid var(--paper-edge); border-radius: 3px;
  box-shadow: var(--shadow); padding: 1.4rem 1.1rem 1.1rem; display: grid; gap: .5rem; align-content: start; min-width: 0;
}
.slip::before {
  content: ""; position: absolute; top: -.55rem; left: 50%; transform: translateX(-50%);
  width: 2.6rem; height: .95rem; border-radius: 4px 4px 2px 2px; background: var(--clip);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.board > :nth-child(3n+1) { transform: rotate(-.6deg); }
.board > :nth-child(3n+2) { transform: rotate(.5deg); }
.board > :nth-child(3n) { transform: rotate(-.2deg); }
.slip time, .print figcaption { font-family: var(--hand); color: var(--c); font-size: 1rem; line-height: 1.3; }
.slip h3 { font-size: 1.05rem; font-weight: 500; margin: 0; }
.slip .body { display: grid; gap: .6rem; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.slip img { border-radius: 2px; width: 100%; height: auto; }
.slip.empty { color: var(--muted); font-style: italic; }

.prints { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.print {
  position: relative; margin: 0; background: var(--paper); border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow); padding: .55rem .55rem .7rem; display: grid; gap: .45rem;
}
.print::before {
  content: ""; position: absolute; top: -.6rem; left: 50%; width: 3.6rem; height: 1.2rem;
  transform: translateX(-50%) rotate(-3deg); background: var(--tape);
}
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print .blank {
  aspect-ratio: 4 / 5; border: 1px dashed var(--paper-edge); display: grid; place-items: center;
  color: var(--muted); font-style: italic; font-size: .9rem; text-align: center; padding: .5rem;
}
.print figcaption { text-align: center; font-size: .95rem; }
.more { font-size: .95rem; }
.back { font-size: .95rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--fg); text-decoration: underline; }

@media (max-width: 520px) {
  .portrait { width: 5rem; }
}
