/* jessemeria.com home (2026-11-08). Porcelain and walnut from the lake-house brief; one family plus the hand.
   The agency (meria.agency) is white, black and Archivo, so the two never look alike. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/home/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Homemade Apple"; src: url("/assets/home/fonts/homemade-apple-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap; }

:root {
  --porcelain: #edefee; --glaze: #ffffff; --shade: #d4d9d8;
  --walnut: #2a150d; --ink: #15110e; --quiet: #57514d; --linen: #f3ece4; --linen-soft: rgb(243 236 228 / .78);
  --ember: #f4c99a;
  --gutter: clamp(16px, 4.5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--porcelain); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; font-optical-sizing: auto; color: var(--ink);
  background: var(--porcelain); font-size: 18px; line-height: 1.55; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
.hand { font-family: "Homemade Apple", cursive; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Hero: his favourite photograph, his name, one plain line, and the way in. */
.hero { position: relative; min-height: 100svh; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px var(--gutter) clamp(36px, 7vh, 80px); isolation: isolate; overflow: hidden; }
.hero > picture img, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .32) 0%, rgb(0 0 0 / 0) 26%, rgb(0 0 0 / 0) 46%, rgb(20 10 5 / .66) 100%); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top .mark { font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; min-height: 44px; display: inline-flex; align-items: center; }
.top ul { display: flex; gap: clamp(14px, 2.4vw, 32px); list-style: none; padding: 0; }
.top ul a { text-decoration: none; font-size: 16px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center;
  text-shadow: 0 1px 12px rgb(0 0 0 / .25); }
.top ul a:hover { text-decoration: underline; text-underline-offset: .3em; }
.top .connect-sm { display: none; }
.hero .note { position: absolute; right: 12%; top: 27%; font-size: clamp(24px, 2.8vw, 40px); transform: rotate(-6deg);
  text-shadow: 0 2px 18px rgb(0 0 0 / .18); pointer-events: none; }
.hero h1 { font-size: clamp(2.3rem, 3.8vw, 3.8rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.hero .sub { margin-top: 16px; max-width: 34ch; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; text-shadow: 0 1px 16px rgb(0 0 0 / .25); }
.pill { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 999px; text-decoration: none;
  font-weight: 650; font-size: 17px; transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease); }
.pill:hover { transform: translateY(-2px); }
.hero .pill { margin-top: 26px; background: rgb(255 255 255 / .94); color: var(--ink); }
.hero .pill:hover { background: #fff; }

section { padding: clamp(72px, 13vh, 150px) var(--gutter); }
.kicker { font-size: 17px; font-weight: 600; color: var(--quiet); }
.title { font-size: clamp(2.4rem, 5.4vw, 5.2rem); }
.kicker + .title { margin-top: 10px; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; font-weight: 650;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.more:hover { text-decoration-thickness: 3px; }

/* Writing: the newest essay large, the next beside it. */
.writing { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 3vw, 44px); margin-top: clamp(36px, 6vh, 64px); }
.essay { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; text-decoration: none;
  background: var(--glaze); border-radius: 44px 44px 44px 6px; padding: clamp(26px, 3.6vw, 56px); min-height: 400px;
  box-shadow: 0 1px 0 var(--shade), 0 30px 60px -40px rgb(42 21 13 / .35); transition: transform .5s var(--ease); }
.essay:hover { transform: translateY(-4px); }
.essay.lead { background: var(--walnut); color: var(--linen); }
.essay time { font-size: 16px; font-weight: 600; opacity: .78; }
.essay h3 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); margin-top: 14px; }
.essay:not(.lead) h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.essay p { font-size: 18px; max-width: 42ch; opacity: .88; }
.essay .read { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }

/* The diary: one day, in his words. */
.diary { background: var(--walnut); color: var(--linen); border-radius: clamp(40px, 7vw, 120px) clamp(40px, 7vw, 120px) 0 0; }
.diary .kicker { color: var(--linen-soft); }
.day { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 90px); margin-top: clamp(36px, 6vh, 70px); }
.day .date { align-self: start; position: sticky; top: 40px; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.day .date small { display: block; font-size: 18px; font-weight: 500; letter-spacing: 0; margin-top: 14px; color: var(--linen-soft); }
.day .date .hand { display: block; font-size: 22px; margin-top: 30px; transform: rotate(-4deg); transform-origin: left; color: var(--ember); }
.day ol { list-style: none; padding: 0; display: grid; gap: 18px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.42; }
.day li { padding-bottom: 18px; border-bottom: 1px solid rgb(243 236 228 / .16); }

/* Why I built them: a row of icons on walnut, each opening its story. */
.why { background: var(--walnut); color: var(--linen); border-radius: clamp(40px, 7vw, 120px) clamp(40px, 7vw, 120px) 0 0; }
.why li img { box-shadow: 0 0 0 1px rgb(243 236 228 / .22), 0 14px 30px -14px rgb(0 0 0 / .8); }
.why ul { list-style: none; padding: 0; margin-top: clamp(30px, 5vh, 56px); display: flex; flex-wrap: wrap; gap: clamp(18px, 2.6vw, 40px); }
.why li a { display: flex; flex-direction: column; align-items: center; gap: 12px; width: clamp(84px, 9vw, 128px); text-decoration: none; }
.why li img { width: 100%; aspect-ratio: 1; border-radius: 23%; box-shadow: 0 14px 30px -18px rgb(0 0 0 / .5); transition: transform .4s var(--ease); }
.why li a:hover img { transform: translateY(-4px); }
.why li span { font-size: 16px; font-weight: 600; text-align: center; line-height: 1.2; }
.why li a:hover span { text-decoration: underline; text-underline-offset: .2em; }

/* About. */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 90px); align-items: center; background: var(--glaze); }
.about figure { border-radius: 240px 240px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--shade); }
.about figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about h2 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); }
.about p { margin-top: 22px; font-size: clamp(19px, 1.5vw, 22px); max-width: 40ch; }
.about .hand { display: block; margin-top: 26px; font-size: 26px; transform: rotate(-3deg); transform-origin: left; }

/* Everything he makes lives at the agency. */
.house p { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; max-width: 24ch; }
.house .icons { display: flex; width: fit-content; text-decoration: none; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.house .icons img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .45); transition: transform .4s var(--ease); }
.house .icons a { display: block; border-radius: 16px; }
.house .icons a:hover img, .house .icons a:focus-visible img { transform: translateY(-3px); }
.house .pill { margin-top: 34px; background: var(--ink); color: #fff; }

/* Connect: the invitation and the form side by side on wide screens. */
.contact { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1080px) {
  .contact { grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
  .contact .ask { margin-top: 8px; padding-top: 0; border-top: 0; grid-template-columns: repeat(2, 1fr); }
}
.contact { background: var(--walnut); color: var(--linen); }
.contact h2 { font-size: clamp(2.4rem, 5.6vw, 5.4rem); max-width: 14ch; }
.contact .lede { margin-top: 22px; max-width: 46ch; font-size: 20px; color: var(--linen-soft); }
.contact .mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 34px; font-size: clamp(1.5rem, 4vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.direct a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid rgb(243 236 228 / .5); text-decoration: none; font-weight: 600; transition: background-color .3s var(--ease), color .3s var(--ease); }
.direct a:hover { background: var(--linen); color: var(--walnut); }
.ask { margin-top: clamp(48px, 8vh, 80px); padding-top: clamp(32px, 5vh, 48px); border-top: 1px solid rgb(243 236 228 / .2);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; max-width: 980px; }
.ask .legend { grid-column: 1 / -1; font-size: 20px; font-weight: 650; }
.field { display: grid; gap: 8px; }
.field.wide, .field.reason { grid-column: 1 / -1; }
.field label { font-size: 16px; font-weight: 600; color: var(--linen-soft); }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--linen);
  border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; min-height: 50px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); }
.hp { position: absolute; left: -9999px; }
.send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.send button { font: inherit; font-weight: 650; font-size: 17px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--linen); color: var(--walnut); cursor: pointer; transition: transform .4s var(--ease); }
.send button:hover { transform: translateY(-2px); }
.send button:disabled { opacity: .6; cursor: default; }
.form-note { font-size: 16px; color: var(--linen-soft); }
.form-note a { color: var(--linen); }

footer { background: var(--walnut); color: var(--linen); padding: 0 var(--gutter) 40px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 28px; border-top: 1px solid rgb(243 236 228 / .16); }
footer ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; padding: 0; }
footer a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
footer small { font-size: 15px; color: var(--linen-soft); align-self: center; }

@media (max-width: 860px) {
  .top ul { display: none; }
  .top .connect-sm { display: inline-flex; }
  .writing, .day, .about, .ask { grid-template-columns: 1fr; }
  .essay { min-height: 0; }
  .hero .note { right: 8%; top: 22%; }
  .why ul { gap: 22px 14px; }
  .why li a { width: calc((100vw - 32px - 48px) / 4); }
  .why li span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
