/* Layout: a single column like thomasbrunier.com, widened for a works grid; serif display, warm paper palette, no logo. */
:root {
  --bg: #f4f1ec; --fg: #1d1c1a; --muted: #77726a; --line: #d9d3c9; --field: #fbf9f6; --accent: #b4532a;
  --serif: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151413; --fg: #ece8e1; --muted: #8f897f; --line: #2c2a27; --field: #1d1c1a; --accent: #e08a5f; color-scheme: dark; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans);
  padding-block: 64px 32px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
main, footer { max-width: 980px; margin: 0 auto; }
a { color: var(--fg); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Intro: the domain's own sentence, "My name is" … */
.hello { font: italic 400 1.2rem/1 var(--serif); color: var(--accent); }
h1 { margin-top: 10px; font: 400 clamp(3rem, 12vw, 7rem)/.95 var(--serif); letter-spacing: -0.035em; text-wrap: balance; }
.role { margin-top: 18px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }

.bio { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); display: grid; gap: 28px; align-items: start; }
.bio p + p { margin-top: 1em; color: var(--muted); }
/* Desktop: lead and second paragraph side by side, so the bio spans the same width as the portfolio grid. */
@media (min-width: 760px) {
  .bio > div { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; }
  .bio p + p { margin-top: 0; padding-top: .35em; }
}
.lead { font: 400 clamp(1.2rem, 3vw, 1.45rem)/1.5 var(--serif); }

/* Works: placeholder frames until real images land in /img/works/. */
.works { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.works-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h2 { font: 400 1.7rem/1.2 var(--serif); }
.note { font-size: 13px; color: var(--muted); font-style: italic; }
.grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px 16px; margin-top: 24px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
.work { min-width: 0; display: grid; gap: 10px; }
.frame {
  aspect-ratio: 4 / 5; max-width: 100%; border: 1px dashed var(--line); border-radius: 2px;
  display: grid; place-items: center; color: var(--line); font: 300 2rem/1 var(--serif);
}
.frame::before { content: "+"; }
.work.tall .frame { aspect-ratio: 3 / 4; }
.work.wide { grid-column: span 2; }
.work.wide .frame { aspect-ratio: 16 / 9; }
.work p { font-size: 14px; color: var(--muted); }
.work p span { display: block; color: var(--fg); font-family: var(--serif); font-size: 1.05rem; }

.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; }

.contact { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.contact form { max-width: 640px; margin-top: 4px; }
.row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
label { display: block; margin-top: 16px; font-size: 15px; color: var(--muted); }
.hint { font-size: 13px; }
input, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; color: var(--fg); background: var(--field);
  border: 1px solid var(--line); border-radius: 6px;
}
input[type=file] { padding: 8px; font-size: 15px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
button {
  margin-top: 24px; padding: 12px 28px; font: inherit; cursor: pointer;
  color: var(--bg); background: var(--fg); border: 0; border-radius: 6px;
}
button:disabled, form[aria-busy] button { opacity: .5; cursor: progress; }
.error { margin-top: 16px; color: var(--accent); }

.page { max-width: 720px; }
.page h1 { font-size: 2.4rem; margin: 16px 0 24px; }
.page h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.page p { color: var(--muted); }
.thanks { min-height: 60vh; display: grid; align-content: center; gap: 16px; }
.thanks h1 { font-size: 3rem; }
.thanks p { color: var(--muted); }

footer { margin-top: 72px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
