/* williammunnich.com
   Layout follows faizififita.com (one column, big headline, project plates).
   Colors and type are William's Obsidian theme, Ukiyo (v-brain vault): parchment and maroon, set in
   CMU Typewriter Text. The red Lil? art comes from the old Google Site.
   One theme only (William, 2026-11-13): there is no dark variant and no theme switch, so the page looks the same
   whatever the visitor's system setting is. Do not add dark-mode media queries here (docs/decisions.md).
   @date Last edited 2026-11-13 */

@font-face { font-family: "CMU Typewriter Text"; src: url("/assets/fonts/CMUTypewriterText-500-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-400-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;      /* form controls and scrollbars stay light in a dark-mode browser too */
  --font: "CMU Typewriter Text", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --paper: #e1c4a6;         /* Ukiyo light: color-base-00 */
  --plate: #d6b593;         /* between base-10 and base-05 */
  --ink: #3b302c;           /* base-100 #5f4f49, darkened for reading */
  --quiet: #66574f;
  --line: #5f4f4924;
  --line-strong: #5f4f4947;
  --on-ink: #e1c4a6;
  --glass: #e1c4a6e0;
  --accent: #800000;        /* Ukiyo light: color-accent */
  --accent-ink: #a00000;    /* color-accent-2 */
  --on-accent: #f3e3d0;
  --banner: #c02600;        /* the Lil? art background */
  --banner-ink: #0a4a12;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color .15s, color .15s, background-color .15s, border-color .15s;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.icon { width: 1em; height: 1em; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--paper); padding: 8px 12px; border-radius: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 68rem; height: 56px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--font); font-weight: 700; font-size: 1rem;
  letter-spacing: -.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--quiet); text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: var(--plate); }
.nav-links a.nav-word { width: auto; padding: 0 12px; font-size: .875rem; font-weight: 600; }
.nav-links a.nav-cta { color: var(--accent); }
@media (max-width: 440px) { .nav-links a.social { display: none; } }

/* main */
main { max-width: 68rem; margin: 0 auto; padding: 56px 16px 96px; }
.intro { margin-bottom: 88px; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.portrait-photo { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 26px; box-shadow: 0 0 0 1px var(--line); }
.kicker { margin-top: 28px; color: var(--accent); font-weight: 600; font-size: .9375rem; letter-spacing: .01em; }
h1 { margin-top: 10px; font-family: var(--font); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; max-width: 15em; }
h1 span { color: var(--quiet); }
.bio { margin-top: 26px; max-width: 36em; color: var(--quiet); font-size: 1.0625rem; }
.bio + .bio { margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }

.button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { opacity: .86; }
.button.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { opacity: 1; border-color: var(--ink); }
.button[disabled] { opacity: .5; cursor: progress; }

.section { margin-top: 96px; scroll-margin-top: 72px; }
.section-title { padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--quiet); font-size: .9375rem; font-weight: 600; }

/* banner (the Lil? art from the old header) */
.banner { position: relative; margin-top: 28px; border-radius: 22px; overflow: hidden; background: var(--banner);
  aspect-ratio: 21 / 8; box-shadow: 0 0 0 1px var(--line), 0 24px 56px -16px #b7250055; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* life clock */
.clock { margin-top: 28px; display: grid; gap: 14px; }
.clock-row { background: var(--plate); border-radius: 16px; padding: 18px 20px; }
.clock-label { color: var(--quiet); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.clock-value { margin-top: 6px; font: 600 clamp(.95rem, 2.4vw, 1.25rem)/1.45 var(--mono);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.clock-bar { margin-top: 12px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.clock-bar > i { display: block; height: 100%; background: var(--accent); width: 0; }
@media (min-width: 880px) { .clock { grid-template-columns: 1fr 1fr; } }

/* projects */
.project { display: grid; gap: 28px; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 56px; }
.plate { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; background: var(--plate); overflow: hidden; display: grid; place-items: center; }
.plate.red { background: var(--banner); }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
a.plate:hover img { transform: scale(1.015); }
.plate .wordplate { font-family: var(--font); font-weight: 700; font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -.005em; }
.project-icon { width: 44px; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px #0003; }
.details h3 { display: flex; align-items: center; gap: 14px; font-size: 1.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -.005em; }
.details > p { margin-top: 12px; max-width: 30em; color: var(--quiet); }
.note { margin-top: 12px; color: var(--quiet); font-size: .8125rem; }

/* support / donate */
.support { display: grid; gap: 28px; padding-top: 40px; }
.support-copy p { color: var(--quiet); max-width: 32em; }
.support-copy p + p { margin-top: 12px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amount { height: 44px; min-width: 72px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.amount[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.custom { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); }
.custom input { width: 6ch; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; outline: none; }
.monthly { display: flex; gap: 8px; align-items: center; margin-top: 16px; color: var(--quiet); font-size: .9375rem; }
.donate-row { margin-top: 20px; }
.form-msg { margin-top: 12px; font-size: .9375rem; min-height: 1.4em; }
.form-msg.ok { color: #1f7a35; }
.form-msg.err { color: var(--accent); }
.fine { margin-top: 14px; color: var(--quiet); font-size: .8125rem; max-width: 36em; }
.thanks { background: var(--plate); border-radius: 16px; padding: 18px 20px; margin-bottom: 24px; }

/* footer */
.footer { max-width: 68rem; margin: 0 auto; padding: 0 16px 48px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; color: var(--quiet); font-size: .875rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* plain pages (privacy, thanks) */
.prose { max-width: 40rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { margin: 40px 0 10px; font-size: 1.25rem; }
.prose p, .prose li { color: var(--quiet); }
.prose p { margin-top: 12px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 880px) {
  .nav-inner { padding: 0 48px; }
  main { padding: 96px 48px 128px; }
  .project { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; padding: 64px 0; }
  .support { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .footer { padding: 0 48px 56px; }
}
@media (prefers-reduced-motion: reduce) { a { transition: none; } .intro { animation: none; } }

/* two support sections */
[hidden] { display: none !important; }
.pay-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.donate .amounts[hidden] + .monthly + .donate-row { margin-top: 0; }

/* project cards: a small label over the title; screenshots sit on the plate like a window */
.details .kicker { margin: 0 0 8px; }
.plate img { object-position: top center; }
.plate:has(img) { background: var(--plate); box-shadow: 0 0 0 1px var(--line), 0 16px 40px -12px #0003; }
.plate .wordplate { padding: 0 16px; text-align: center; }

/* Ukiyo touches: bold in the theme's red-brown, selection and highlight like the vault */
strong, b { color: var(--accent-ink); }
::selection { background: #c7a78683; }
.plate.plate-light { background: #f3e3d0; }
.plate img.contain { object-fit: contain; padding: 12%; }

/* highlights in the Ukiyo red (the earlier pink is gone) */
:root { --pink: var(--accent); --pink-ink: var(--on-accent); }
::selection { background: var(--accent); color: var(--on-accent); }
.tag-pink { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.clock-bar > i { background: var(--accent); }
.amount:hover:not([aria-pressed="true"]) { border-color: var(--accent); color: var(--accent); }
.thanks { background: var(--plate); color: var(--ink); border-left: 3px solid var(--accent); }
a.plate:hover { box-shadow: 0 0 0 2px var(--accent), 0 16px 40px -12px #0003; }


/* Hire me */
.hire-intro { padding-top: 28px; max-width: 40em; }
.hire-lead { font-size: 1.6rem; font-weight: 700; letter-spacing: -.005em; }
.hire-intro p { margin-top: 10px; color: var(--quiet); }
.services { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.service { background: var(--plate); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; border: 1px solid transparent; transition: border-color .15s; }
.service:hover { border-color: var(--accent); }
.service h3 { font-size: 1.1rem; }
.service p { color: var(--quiet); font-size: .95rem; flex: 1; }
.service .button { align-self: flex-start; margin-top: 6px; }
#hire > .actions { margin-top: 22px; }

.service-feature { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--plate)); }
.service-feature h3 { color: var(--accent); }
.service-small { font-size: .85rem !important; }

/* the Lil? art: big above the footer, small in the nav beside GitHub and LinkedIn (click = back to the top) */
.footer-art { max-width: 68rem; margin: 0 auto; padding: 0 16px 40px; }
.footer-art .banner { margin-top: 0; aspect-ratio: 21 / 8; }
.nav-links a.lil { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.nav-links a.lil img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); transition: transform .15s; }
.nav-links a.lil:hover { background: var(--plate); }
.nav-links a.lil:hover img { transform: rotate(-8deg) scale(1.06); }
@media (min-width: 880px) { .footer-art { padding: 0 48px 48px; } }

/* nav on every phone: one line always, nothing wraps or falls off; least important items step aside first */
.wordmark { min-width: 0; flex: 0 1 auto; white-space: nowrap; }
.wordmark .wm-name { overflow: hidden; text-overflow: ellipsis; }
.nav-links { flex: none; }
.nav-links a.nav-word { white-space: nowrap; }
.nav-inner { gap: 8px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (max-width: 640px) {
  .nav-inner { height: 52px; }
  .nav-links { gap: 0; }
  .nav-links a { height: 44px; }
  .nav-links a.nav-word { padding: 0 9px; font-size: .84rem; }
}
@media (max-width: 560px) { .nav-links a.social { display: none; } }
@media (max-width: 400px) {
  .wordmark .wm-name { display: none; }
  .nav-links a.nav-word { padding: 0 7px; font-size: .8rem; }
  .nav-links a.lil { width: 40px; }
}
@media (max-width: 340px) { .nav-links a.nav-word { padding: 0 5px; letter-spacing: -.02em; } }
@media (max-width: 300px) {        /* folding phones' narrow cover screens */
  .nav-inner { padding-left: 10px; padding-right: 10px; gap: 4px; }
  .nav-links a.nav-word { padding: 0 4px; font-size: .74rem; }
  .nav-links a.lil { width: 34px; }
}
@media (max-width: 500px) { .wordmark .wm-last { display: none; } }   /* first name only rather than "William Munn…" */

/* privacy.html: retention table and "See or delete your data" */
.retention { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: .9375rem; }
.retention th, .retention td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.retention th { font-weight: 700; }
.mydata { margin: 16px 0; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; }
.mydata .actions { margin-top: 12px; }
.mydata-id code { overflow-wrap: anywhere; }
.mydata-status { min-height: 1.5em; margin: 12px 0 0; }
/* "Show my data" opens and closes the panel under it; the small triangle shows which state it is in. */
.mydata-toggle::before { content: "\25B8"; display: inline-block; margin-right: .5em; transition: transform .15s ease; }
.mydata-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
#mydata-out { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line-strong); }
.mydata-section h3 { margin: 18px 0 6px; font-size: 1rem; }
.mydata-section ul { margin: 0; padding-left: 1.2em; max-height: 320px; overflow: auto; overflow-wrap: anywhere; }
@media (max-width: 560px) { .retention { font-size: .875rem; } .retention th, .retention td { padding: 6px 4px; } }
