/* Hosanna Unom — simple and readable.
   Two fonts, one accent, white pages, cream for contact. No scroll effects. */
:root {
  --paper: #FFFFFF;
  --soft: #F7E7CE;
  --blush: #F6E1E0;
  --contact: var(--blush);
  --rose: #B76E79;
  --rule: #E8DED6;
  --ink: #2F2724;
  --muted: #74665F;
  --accent: #9A5560;
  --title: 'Cormorant Garamond', Garamond, Georgia, serif;
  --text: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --type: 1;
  --s-hero: calc(clamp(40px, 5.6vw, 68px) * var(--type));
  --s-title: calc(clamp(30px, 3.4vw, 38px) * var(--type));
  --s-sub: calc(24px * var(--type));
  --s-body: calc(17px * var(--type));
  --s-small: calc(14px * var(--type));
  --measure: 66ch;
  --wide: 1080px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-weight: 400; font-size: var(--s-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rose); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 500; margin: 0; line-height: 1.12; text-wrap: balance; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 16px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }
.label { font-size: var(--s-small); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

.btn { display: inline-block; padding: 11px 24px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-size: var(--s-small); letter-spacing: .04em; text-decoration: none; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.actions a:not(.btn) { font-size: var(--s-small); }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--title); font-size: 24px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: var(--s-small); }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* home: intro */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 48px; align-items: center; padding-block: 64px 48px; }
.intro .label { margin-bottom: 12px; }
.intro h1 { font-size: var(--s-hero); line-height: 1.04; }
.intro-text { margin-top: 20px; max-width: 48ch; font-size: calc(19px * var(--type)); }
.intro .actions { margin-top: 28px; }
.bouquet { width: 100%; height: auto; color: var(--rose); }
@media (max-width: 700px) {
  .intro { grid-template-columns: minmax(0, 1fr) 72px; gap: 20px; align-items: start; padding-block: 40px 32px; }
}

/* sections */
.section { padding-block: 56px; border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 8px; }
.section-head h2 { font-size: var(--s-title); }
.section-head a { font-size: var(--s-small); }

/* work list */
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li + li { border-top: 1px solid var(--rule); }
.work-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding-block: 24px; text-decoration: none; }
.work-list .w-type { font-size: var(--s-small); color: var(--muted); }
.work-list .w-title { display: block; font-family: var(--title); font-weight: 500; font-size: calc(28px * var(--type)); line-height: 1.15; margin-top: 2px; }
.work-list .w-sum { display: block; margin-top: 6px; color: var(--muted); max-width: 60ch; }
.work-list .w-more { font-size: var(--s-small); white-space: nowrap; color: var(--accent); }
.work-list .w-img { width: 132px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.work-list a:hover .w-title { color: var(--accent); }
@media (max-width: 600px) {
  .work-list a { grid-template-columns: minmax(0, 1fr); }
  .work-list .w-img { width: 100%; max-width: 360px; }
  .work-list .w-more { display: none; }
}
.empty { padding-block: 24px; color: var(--muted); }

/* filters on the Work page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px 8px; }
.filters button { font-size: var(--s-small); padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.filters button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }

/* about */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--soft); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-body { display: grid; gap: 14px; max-width: 60ch; }
.about-body h2 { font-size: var(--s-title); }
.about-body .actions { margin-top: 10px; }
.now { margin: 6px 0 0; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 14px; }
.now div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; }
.now dt { font-size: var(--s-small); color: var(--muted); padding-top: 2px; }
.now dd { margin: 0; }
@media (max-width: 700px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-photo { max-width: 180px; }
  .now div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* how I work */
.how { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: how; }
.how li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 4px 12px; padding-block: 16px; border-top: 1px solid var(--rule); counter-increment: how; }
.how li::before { content: counter(how, decimal-leading-zero); grid-row: span 2; font-family: var(--title); font-size: 22px; color: var(--rose); line-height: 1.2; }
.how strong { font-weight: 500; }
.how span { color: var(--muted); }

/* contact */
.contact { background: var(--contact); padding-block: 64px 32px; }
.contact h2 { font-size: var(--s-hero); }
.contact .sub { margin-top: 16px; max-width: 48ch; }
.contact .actions { margin-top: 28px; }
.site-footer { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--s-small); color: var(--muted); }
.light-footer { margin-top: 64px; padding-block: 28px; border-top: 1px solid var(--rule); font-size: var(--s-small); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; }

/* page titles (Work, Résumé, case files) */
.page-head { padding-block: 56px 32px; }
.page-head h1 { font-size: var(--s-hero); }
.page-head .lede { margin-top: 16px; max-width: 56ch; font-size: calc(19px * var(--type)); }
.back { display: inline-block; margin-bottom: 24px; font-size: var(--s-small); text-decoration: none; color: var(--muted); }
.back:hover { color: var(--ink); }

/* a case file: one plain page */
.case { max-width: 760px; }
.case .page-head h1 { font-size: calc(clamp(34px, 4.6vw, 52px) * var(--type)); }
.facts { margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; }
.facts div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 16px; }
.facts dt { font-size: var(--s-small); color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; }
.case-cover { margin: 8px 0 24px; }
.case-cover img { width: 100%; }
.contents { margin: 0 0 8px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: var(--s-small); }
.contents p { color: var(--muted); margin-bottom: 6px; }
.contents ol { margin: 0; padding-left: 1.2em; display: grid; gap: 2px; }
.case-section { padding-top: 48px; }
.case-section > h2 { font-size: var(--s-title); padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.step { margin-top: 32px; }
.step > h3 { font-size: var(--s-sub); margin-bottom: 10px; }
.step > h3 .n { display: block; font-family: var(--text); font-size: var(--s-small); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.case-end { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: var(--s-small); }

/* text written in Notion */
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: var(--measure); }
.prose h2 { font-size: var(--s-sub); margin-top: 16px; }
.prose h3 { font-size: calc(21px * var(--type)); margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--rose); }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 2px solid var(--rose); font-family: var(--title); font-size: calc(22px * var(--type)); line-height: 1.35; }
.prose .callout { padding: 16px 20px; background: var(--blush); }
.prose figure { margin: 8px 0; }
.prose .video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--soft, #f4efe8); border: 1px solid var(--rule); }
.prose .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .video video { width: 100%; height: auto; display: block; border: 1px solid var(--rule); background: #000; }
.prose figcaption { margin-top: 8px; font-size: var(--s-small); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 8px 0; width: 100%; }
.prose code { font-size: .92em; }
.prose .columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--s-small); }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }

/* drop-downs (Notion toggles) */
.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: var(--measure); }
.more + .more { border-top: 0; }
.more > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; text-align: left; font-weight: 500; }
.more > button .sign { color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.more[data-open="true"] > button .sign { transform: rotate(45deg); }
.more .body { display: none; }
.more[data-open="true"] .body { display: block; }
.more .body > div { display: grid; gap: 12px; padding-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .more > button .sign { transition: none; } }

/* résumé */
.resume-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: 56px 32px; border-bottom: 1px solid var(--ink); }
.resume-head h1 { font-size: var(--s-title); margin-top: 8px; }
.resume-head .contact-line { margin-top: 12px; font-size: var(--s-small); color: var(--muted); }
.resume { padding-block: 32px 16px; }
.resume .prose { max-width: 72ch; }
.resume .prose h2 { margin-top: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.resume .prose h3 + p { color: var(--muted); font-size: var(--s-small); margin-top: -8px; }

.loading { color: var(--muted); padding-block: 24px; }

/* the flower draws itself in once, then stays still */
.bouquet path, .bouquet circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bouquet path, .bouquet circle { animation: draw 1.6s cubic-bezier(.45, 0, .2, 1) calc(.2s + var(--i, 0) * .12s) both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* headings ease in as you reach them (only when motion is allowed) */
html.reveal .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
html.reveal .rv.in { opacity: 1; transform: none; }
.case-section > h2 { position: relative; }
.case-section > h2::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rose); transform-origin: left; }
html.reveal .case-section > h2.rv::after { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .25s; }
html.reveal .case-section > h2.rv.in::after { transform: scaleX(1); }

/* at-a-glance numbers at the top of a case file */
.stats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--blush); padding: 18px 18px 16px; display: grid; gap: 6px; align-content: start; }
.stat-n { font-family: var(--title); font-weight: 500; font-size: calc(40px * var(--type)); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-l { font-size: var(--s-small); line-height: 1.4; }

/* boxes pop in as you scroll to them */
html.reveal .pop { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
html.reveal .pop.in { opacity: 1; transform: none; }
.prose figure img { border: 1px solid var(--rule); }

/* swipeable cards (Notion: a paragraph saying [swipe] right above a bulleted list) */
.swipe { margin: 8px 0; max-width: 100%; }
.swipe-track { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 42%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.swipe-track::-webkit-scrollbar { display: none; }
.swipe-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) { .swipe-track { grid-auto-columns: 82%; } }
.card { scroll-snap-align: start; background: var(--blush); padding: 22px 20px 24px; display: grid; gap: 10px; align-content: start; min-height: 200px; }
.card-n { font-family: var(--title); font-size: 15px; color: var(--accent); }
.card-t { font-family: var(--title); font-weight: 500; font-size: calc(23px * var(--type)); line-height: 1.12; }
.card-b { font-size: var(--s-small); line-height: 1.55; }
.prose .card ::marker { content: none; }
.swipe-nav { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.swipe-hint { font-size: var(--s-small); color: var(--muted); }
.swipe-dots { display: flex; gap: 6px; margin-right: auto; }
.swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: background .3s ease, transform .3s ease; }
.swipe-dots i.on { background: var(--accent); transform: scale(1.3); }
.swipe-btn { width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink); display: grid; place-items: center; transition: border-color .2s ease, background .2s ease; }
.swipe-btn:hover { border-color: var(--ink); background: var(--paper); }
@media (hover: none) { .swipe-btn { display: none; } }
.swipe { min-width: 0; }

/* homepage: the three lenses */
.hero-lenses { margin-top: 10px; line-height: 1.2; font-family: var(--title); font-style: italic; font-size: calc(clamp(22px, 2.6vw, 30px) * var(--type)); color: var(--accent); }
.lenses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-bottom: 8px; }
.lens { padding: 22px 22px 26px 0; display: grid; gap: 6px; align-content: start; }
.lens + .lens { padding-left: 22px; border-left: 1px solid var(--rule); }
.lens-q { font-family: var(--title); font-weight: 500; font-size: calc(21px * var(--type)); line-height: 1.2; }
.lens-t { font-size: var(--s-small); color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .lenses { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lens:nth-child(3) { padding-left: 0; border-left: 0; }
  .lens:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* homepage intro arrives line by line on load */
@media (prefers-reduced-motion: no-preference) {
  .intro > div:first-child > * { animation: riseIn .9s cubic-bezier(.2, .7, .2, 1) both; }
  .intro > div:first-child > :nth-child(1) { animation-delay: .1s; }
  .intro > div:first-child > :nth-child(2) { animation-delay: .25s; }
  .intro > div:first-child > :nth-child(3) { animation-delay: .45s; }
  .intro > div:first-child > :nth-child(4) { animation-delay: .65s; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* comments and replies at the end of a piece */
.discuss { margin-top: 64px; padding: 32px 0 8px; border-top: 1px solid var(--rule); max-width: var(--measure); }
.discuss h2 { font-size: var(--s-title); margin-bottom: 18px; }
.comments { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.comments li { padding-left: 14px; border-left: 2px solid var(--blush); }
.c-meta { font-size: var(--s-small); color: var(--muted); margin-bottom: 4px; }
.c-meta strong { color: var(--ink); font-weight: 500; }
.comment-form { display: grid; gap: 14px; margin-bottom: 18px; }
.comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .comment-form .row { grid-template-columns: 1fr; } }
.comment-form label { display: grid; gap: 6px; font-size: var(--s-small); }
.comment-form input, .comment-form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); padding: 10px 12px; border-radius: 0; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form textarea { resize: vertical; min-height: 110px; }
.comment-form .btn:disabled { opacity: .6; cursor: default; }
.form-note { font-size: var(--s-small); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.discuss-alt { font-size: var(--s-small); color: var(--muted); }

/* newsletter signup */
.signup { margin: 48px 0 8px; padding: 28px 24px; background: var(--blush); max-width: var(--measure); }
.contact .signup { margin-top: 32px; background: var(--paper); }
.signup h2 { font-size: var(--s-sub); }
.signup .sub { margin: 8px 0 16px; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); padding: 10px 12px; border-radius: 0; }
.signup-form input:focus { outline: none; border-color: var(--accent); }
.signup .form-note { margin-top: 10px; font-size: var(--s-small); min-height: 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
