:root {
  --paper: #f6f3ee;
  --ink: #1d1d1b;
  --muted: #5d5a54;
  --line: #d9d3c9;
  --accent: #9a4a2b;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Draft markers: numbers still to come. Remove before publishing. */
mark.todo { background: #ffe3a3; color: var(--ink); padding: 0 4px; border-radius: 3px; font-family: var(--sans); font-size: 0.85em; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.nav .name { font-family: var(--serif); font-weight: 600; font-size: 20px; text-decoration: none; }
.nav ul { display: flex; gap: 24px; list-style: none; font-size: 14px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }

/* Type */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 24px; }

/* Home hero */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 15ch; margin-top: 18px; }
.hero p { max-width: 560px; margin-top: 24px; font-size: 19px; color: var(--muted); }

/* Project list */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section > .wrap > .kicker { display: block; margin-bottom: 28px; }
.projects { list-style: none; }
.project { border-top: 1px solid var(--ink); }
.project a { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 24px; padding: 32px 0 40px; text-decoration: none; }
.project .num { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.project h3 { font-size: clamp(28px, 3.4vw, 40px); }
.project .meta { color: var(--muted); font-size: 15px; }
.project .meta strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.project a:hover h3 { color: var(--accent); }

/* Earlier work */
.earlier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.earlier h3 { font-size: 22px; margin-bottom: 4px; }
.earlier .when { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.earlier p { font-size: 15px; }

/* Outside work */
.outside { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.tile { aspect-ratio: 4 / 5; background: #e7e1d7; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); text-align: center; padding: 8px; }
.outside p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about p + p { margin-top: 14px; }
.contact-list { list-style: none; font-size: 16px; }
.contact-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.btn { display: inline-block; margin-top: 24px; padding: 12px 22px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 999px; }
.btn:hover { background: var(--accent); }

/* Case study */
.cs-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.cs-hero h1 { font-size: clamp(38px, 6vw, 72px); max-width: 18ch; margin-top: 16px; }
.cs-hero .dek { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--muted); max-width: 32ch; margin-top: 20px; line-height: 1.3; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink); font-size: 14px; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.stat { border-top: 1px solid var(--ink); padding-top: 16px; }
.stat .big { font-family: var(--serif); font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--accent); }
.stat p { margin-top: 10px; font-size: 15px; color: var(--muted); }

.cs-block { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.cs-block:last-child { border-bottom: 0; }
.cs-block .body { max-width: 680px; }
.cs-block .body p + p { margin-top: 14px; }
.cs-block ul { padding-left: 20px; }
.cs-block li { margin: 6px 0; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.posts blockquote.instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.posts figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.next { display: flex; justify-content: space-between; gap: 24px; padding: 48px 0 72px; font-family: var(--serif); font-size: 22px; }
.next a { text-decoration: none; }
.next a:hover { color: var(--accent); }

footer { padding: 40px 0; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav ul { gap: 14px; font-size: 13px; }
  .nav ul li.hide-sm { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
  .project a { grid-template-columns: 1fr; gap: 10px; padding: 24px 0 28px; }
  .earlier, .outside, .about, .facts, .stats { grid-template-columns: 1fr; }
  .cs-block { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .posts { grid-template-columns: 1fr; }
}
.stat .big mark.todo { font-size: 16px; vertical-align: middle; }
.hero .sub { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); margin-top: 20px; max-width: none; line-height: 1.25; }

/* Resume on the home page */
.resume { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.r-side h2 { margin-top: 16px; }
.r-side { position: sticky; top: 24px; align-self: start; }
.r-dl { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.r-dl .btn { margin-top: 12px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { color: var(--paper); }
.r-body { max-width: 720px; font-size: 16px; }
.r-job { padding: 20px 0; border-top: 1px solid var(--line); }
.r-job:first-child { border-top: 1px solid var(--ink); padding-top: 18px; }
.r-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.r-head .org { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.r-head .dates { font-size: 14px; color: var(--muted); white-space: nowrap; }
.r-lede { color: var(--muted); margin: 4px 0 8px; font-size: 15px; }
.r-body ul { padding-left: 20px; margin-top: 8px; }
.r-body li { margin: 8px 0; }
.r-earlier { padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.r-h { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 36px 0 12px; }
.r-body .skills p, .r-body > p { font-size: 15px; margin: 6px 0; }

/* Work showcase: strategy beside the posts */
.work-h { margin-bottom: 8px; }
.show { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--ink); margin-top: 40px; }
.show + .show { margin-top: 0; }
.show-text { position: sticky; top: 24px; align-self: start; }
.show-text .num { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.show-text h3 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 16px; }
.show-text p { font-size: 16px; margin-bottom: 12px; }
.kicker.sm { display: block; font-size: 11px; margin: 20px 0 6px; }
.show-text ul { padding-left: 20px; font-size: 15px; }
.show-text li { margin: 4px 0; }
.show-text .stat { margin-top: 24px; }
.show-text .more { display: inline-block; margin-top: 20px; font-family: var(--serif); font-size: 19px; text-decoration: none; }
.show-text .more:hover { color: var(--accent); }
.show .posts { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

@media (max-width: 760px) {
  .resume, .show { grid-template-columns: 1fr; gap: 24px; }
  .r-side, .show-text { position: static; }
  .show { padding: 40px 0; }
}

/* Instagram embeds: framed to match the site */
.posts figure { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.posts blockquote.instagram-media { background: var(--paper) !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; min-height: 420px; display: flex !important; align-items: center; justify-content: center; padding: 24px !important; }
.posts blockquote.instagram-media a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.posts blockquote.instagram-media a::after { content: " →"; }
.posts iframe.instagram-media { border: 0 !important; border-radius: 10px !important; box-shadow: none !important; min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.posts figcaption { padding: 6px 4px 2px; }
.show .posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Product card (used when no published posts yet) */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; align-self: start; }
.product-card .tagline { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 6px 0 24px; }
.product-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.product-card dt { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.product-card dd { font-size: 15px; }
.product-card .more { display: inline-block; margin-top: 24px; font-family: var(--serif); font-size: 18px; text-decoration: none; }
.product-card .more:hover { color: var(--accent); }
@media (max-width: 760px) { .product-card { padding: 24px; } .product-card dl { grid-template-columns: 1fr; } }

/* X (Twitter) embeds, framed like the Instagram ones */
.posts blockquote.twitter-tweet { background: var(--paper); border-radius: 10px; min-height: 420px; margin: 0; padding: 24px; display: flex; align-items: center; justify-content: center; }
.posts blockquote.twitter-tweet a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.posts blockquote.twitter-tweet a::after { content: " →"; }
.posts .twitter-tweet-rendered { margin: 0 !important; width: 100% !important; max-width: none !important; }

.show-text .show-tagline { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; color: var(--accent); margin: -6px 0 18px; }

.mesh-right { display: flex; flex-direction: column; gap: 24px; }
.mesh-right .product-card { align-self: stretch; }

.product-card.plain { background: none; border: 0; border-radius: 0; padding: 0; }
.product-card.plain dl { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .product-card.plain dl { grid-template-columns: 1fr; } }

/* Film photography */
.film-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.film-head p { color: var(--muted); font-size: 15px; max-width: 46ch; }
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.film-shot { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; background: #e7e1d7; border-radius: 4px; }
.film-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.film-shot:hover img { transform: scale(1.03); }
.ceramics { margin-top: 56px; max-width: 560px; }
.ceramics p { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 760px) { .film-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
