/* Graphics by Hand — styles. Mobile-first, plain CSS. */
:root {
  --ink: #2A2522;
  --cream: #F8F3F0;
  --red: #C8462E;
  --muted: #5E5550;          /* ink, softened; 6.5:1 on cream */
  --line: rgba(42, 37, 34, .18);
  /* frame set (from Jack's swatch) */
  --slate: #2F4858;
  --teal: #4A9A8A;
  --mustard: #E0BF6A;
  --terracotta: #D4705A;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--ink); color: var(--cream); padding: 12px 16px; z-index: 20; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 12px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.wordmark { font-family: var(--serif); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.wordmark b { font-weight: 600; }
.wordmark i { font-weight: 300; font-style: italic; color: var(--red); }
.nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 0 -8px; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.label { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lede { font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.5; max-width: 34em; }
em.hand { font-weight: 300; font-style: italic; color: var(--red); }

/* Layout */
main { display: block; }
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.page-head { padding: 40px 0 8px; }
.cols { display: grid; gap: 36px; align-items: center; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 600 .9375rem var(--sans); letter-spacing: .04em; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.primary { background: var(--ink); color: var(--cream); }
.btn.primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--ink); border-color: var(--ink); }

/* TODO markers (visible on purpose) */
.todo { display: inline-block; margin: 8px 0; padding: 8px 12px; border: 2px dashed var(--red); background: #FBE9E3; color: var(--ink); font: 600 .9rem/1.4 var(--sans); }

/* The signature detail: framed artwork */
.frame { --frame: var(--ink); display: block; width: 100%; margin: 0; padding: clamp(10px, 3.2vw, 20px); background: var(--frame); box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 18px 28px -18px rgba(42,37,34,.55); border: 0; }
.frame img { width: 100%; outline: 1px solid rgba(0,0,0,.28); }
[data-frame="slate"] { --frame: var(--slate); }
[data-frame="teal"] { --frame: var(--teal); }
[data-frame="mustard"] { --frame: var(--mustard); }
[data-frame="terracotta"] { --frame: var(--terracotta); }
button.frame { cursor: zoom-in; font: inherit; color: inherit; }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Contact form */
.form-h { margin-top: 48px; font-size: 1.4rem; }
.form p { margin: 0 0 18px; }
.form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; }
.form .hint { font-weight: 400; color: var(--muted); }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form button { cursor: pointer; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1F6B4F; }
.form-status.err { color: #A3301C; }

/* Gallery grids */
.grid { display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); align-items: start; margin-top: 28px; }
.strip { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin-top: 24px; align-items: start; }
.strip .frame { padding: 8px; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); margin-top: 48px; padding: 40px 0 32px; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer .wordmark i { color: #E8745C; }
.site-footer a { text-decoration-color: #E8745C; }
.site-footer .row { display: flex; align-items: center; gap: 14px; }
.site-footer .row img { width: 34px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer small { font-size: .875rem; opacity: .85; }
.site-footer :focus-visible { outline-color: var(--cream); }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--cream); }
dialog.lightbox::backdrop { background: rgba(32, 28, 26, .94); }
.lb-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 64px 16px 16px; gap: 12px; }
.lb-frame { background: var(--frame, var(--ink)); padding: clamp(8px, 2vw, 16px); max-width: 100%; max-height: 100%; min-height: 0; display: flex; }
.lb-frame img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; margin: auto; outline: 1px solid rgba(0,0,0,.28); }
.lb-cap { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; min-height: 1.4em; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 2px solid var(--cream); border-radius: 50%; background: rgba(32,28,26,.6); color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--cream); color: var(--ink); }
.lb-btn:focus-visible { outline-color: var(--cream); }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* Home hero: the neon city painting stays put while text pops up over it as you scroll */
.stage { position: relative; background: #1b1715; color: var(--cream); }
.stage-sticky { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.stage-img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-sticky::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to top, rgba(20,17,16,.78), rgba(20,17,16,.55)); }
.stage-copy { position: relative; z-index: 2; display: grid; gap: 56px; padding-top: 48px; padding-bottom: 48px; }
.stage .label { color: var(--cream); opacity: .9; }
.stage h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); max-width: 14ch; }
.stage em.hand { color: #FF9C84; }
.stage .pop { text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 22px rgba(0,0,0,.7); }
.stage .lede { max-width: 34ch; }
.stage .btn.primary { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.stage .btn.primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.stage-mail { margin: 16px 0 0; }
.stage a:not(.btn) { text-decoration-color: #F0866E; }
.stage :focus-visible { outline-color: var(--cream); }
.stage .quote { margin: 0; max-width: 32ch; font: 300 italic clamp(1.4rem, 4vw, 2.4rem)/1.3 var(--serif); }

/* Scroll-driven version (JS adds .is-live; without JS or with reduced motion both texts just sit on the painting) */
@media (prefers-reduced-motion: no-preference) {
  .stage.is-live { height: 240vh; }
  .stage.is-live .stage-sticky { position: sticky; top: 0; height: 100svh; min-height: 0; }
  .stage.is-live .stage-copy { display: block; padding-top: 0; padding-bottom: 0; }
  .stage.is-live .pop { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(calc(-50% + 24px)); opacity: 0; visibility: hidden; transition: opacity .6s ease, transform .6s ease, visibility 0s .6s; }
  .stage.is-live[data-step="1"] .pop-1, .stage.is-live[data-step="2"] .pop-2 { opacity: 1; visibility: visible; transform: translateY(-50%); transition-delay: 0s; }
}

/* Subtle motion, only if allowed */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .rise { animation: rise .7s ease both; }
  .rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; }
  .frame { transition: transform .3s ease, box-shadow .3s ease; }
  figure:hover .frame { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 24px 30px -18px rgba(42,37,34,.6); }
}

/* Laptop */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 12px; }
  .nav ul { margin-left: 0; }
  .nav a { padding: 0 12px; font-size: .8125rem; letter-spacing: .09em; }
  .cols { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .cols.flip { grid-template-columns: .8fr 1.2fr; }
  .section { padding: 80px 0; }
  .strip { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .strip.three { grid-template-columns: repeat(3, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}
