:root {
  --bg: #fbf8f3; --fg: #1f1d1a; --muted: #6b655c; --line: #e3ddd3; --accent: #9a3b2e; --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1816; --fg: #eeeae4; --muted: #a59f95; --line: #36322d; --accent: #e08a74; --card: #23201d; }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0 auto; max-width: 42rem; padding: 2rem 16px 4rem;
  background: var(--bg); color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
header { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }
header a.home { color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
nav { margin-top: 0.4rem; font-size: 0.95rem; }
nav a { color: var(--muted); margin-right: 1rem; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
a { color: var(--accent); }
.lead { color: var(--muted); }
.notice {
  border-left: 4px solid var(--accent); background: var(--card); padding: 0.8rem 1rem; margin: 1.5rem 0;
}
.design { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; margin: 1rem 0; }
.design dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; margin: 0.5rem 0 0; font-size: 0.95rem; }
.design dt { color: var(--muted); }
.design dd { margin: 0; overflow-wrap: anywhere; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
@media (max-width: 30rem) { .design dl { grid-template-columns: 1fr; } .design dd { margin-bottom: 0.4rem; } }

/* portfolio home */
body.wide { max-width: 60rem; }
.hero { padding: 1.5rem 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--accent); margin: 0 0 0.6rem; font-weight: 600; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1rem; }
.hero .lead { font-size: 1.1rem; max-width: 38rem; }
h2.section { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 2.5rem 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 1.25rem; }
.piece { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; }
.piece .pic { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, var(--bg) 0%, var(--card) 70%); border-radius: 8px; margin-bottom: 0.9rem; }
.piece img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.piece h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.piece p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.piece .credit { margin-top: auto; color: var(--muted); font-size: 0.85rem; }
.small { color: var(--muted); font-size: 0.85rem; }
