/* ============ Fonts (self-hosted) ============ */
@font-face { font-family: "Sulphur Point"; font-weight: 700; font-display: swap; src: url("fonts/sulphur-point-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Rethink Sans"; font-weight: 400; font-display: swap; src: url("fonts/rethink-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Rethink Sans"; font-weight: 500; font-display: swap; src: url("fonts/rethink-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rethink Sans"; font-weight: 600; font-display: swap; src: url("fonts/rethink-sans-latin-600-normal.woff2") format("woff2"); }

/* ============ Tokens ============ */
:root {
  --blue: #1b29a2;
  --navy: #132160;
  --orange: #ff4a00;
  --ink: #222d39;
  --grey: #575757;
  --line: #000;
  --bg: #fff;

  --nav-w: 215px;
  --content: 985px;
  --pad: 120px;
  --gap: 32px;
  --item-gap: 80px;

  --h1: 74px;
  --h3: 32px;
  --lede: 32px;
  --body: 18px;
  --tag: 18px;
  --label: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--body)/1.2 "Rethink Sans", system-ui, sans-serif;
  letter-spacing: -0.01em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ============ Navigation (desktop: fixed left column) ============ */
.nav {
  position: fixed; inset: 0 auto 0 0; width: var(--nav-w);
  background: var(--bg); border-right: 1px solid var(--line); z-index: 20;
  display: flex; flex-direction: column;
}
.nav__logo { display: flex; justify-content: center; padding: 30px 20px; border-bottom: 1px solid var(--line); }
.nav__logo img { width: 110px; height: auto; }
.nav__links { list-style: none; margin: 0; padding: 24px 20px; display: flex; flex-direction: column; gap: 24px; }
.nav__links a {
  font-weight: 600; font-size: 18px; color: var(--blue); text-decoration: none; transition: color .15s;
}
.nav__links a:hover { color: var(--grey); }
.nav__links a[aria-current="true"] { color: var(--orange); }
.nav__links .short { display: none; }

main, .footer { margin-left: var(--nav-w); }
.wrap { max-width: calc(var(--content) + 2 * var(--pad)); padding: 0 var(--pad); margin: 0 auto; }

/* ============ Hero ============ */
.hero { position: relative; height: 761px; overflow-x: clip; }
.hero__img { position: absolute; top: 0; right: 11px; width: min(792px, 58vw); aspect-ratio: 1; object-fit: cover; }
.hero .wrap { position: relative; height: 100%; }
.hero__name {
  position: absolute; left: var(--pad); top: 600px; z-index: 1;
  font: 700 var(--h1)/1.1 "Sulphur Point", sans-serif; letter-spacing: -0.01em; color: var(--blue);
}

/* ============ Intro ============ */
.intro { padding: 32px 0 40px; }
.intro__labels { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; color: var(--orange); font-weight: 500; font-size: var(--label); text-transform: uppercase; }
.intro__text { margin-top: 24px; max-width: 523px; font: 700 var(--lede)/1.2 "Sulphur Point", sans-serif; letter-spacing: 0; color: var(--navy); }

/* ============ Sections ============ */
.section { padding: 80px 0; scroll-margin-top: 0; }
.section + .section { padding-top: 0; }
.h1 { font: 700 var(--h1)/1.1 "Sulphur Point", sans-serif; letter-spacing: -0.01em; color: var(--blue); }
.h1--orange { color: var(--orange); }
.items { display: flex; flex-direction: column; gap: var(--item-gap); }

/* Artwork */
.art { display: block; cursor: zoom-in; position: relative; }
.art img { width: 100%; height: auto; background: #f3f3f1; }

/* Description block */
.desc { display: flex; flex-direction: column; gap: 20px; }
.desc__title { font: 700 var(--h3)/1.2 "Sulphur Point", sans-serif; letter-spacing: 0; color: var(--orange); }
.desc__body { display: flex; flex-direction: column; gap: 32px; }
.desc__text { white-space: pre-line; }
.desc__meta { display: flex; flex-direction: column; gap: 12px; }
.palette { display: flex; align-items: center; gap: 8px; }
.palette__chips { display: flex; gap: 4px; }
.palette__chips span { width: 24px; height: 20px; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tags li { background: var(--orange); color: #fff; font-weight: 600; font-size: var(--tag); padding: 4px 8px; }
.on-paper .tags li { background: var(--blue); }

/* Layouts */
.item { display: grid; gap: var(--gap); }
.item--lead { grid-template-columns: 359fr 594fr; align-items: start; }
.item--lead .item__main { display: flex; flex-direction: column; gap: var(--gap); }
.item--full { grid-template-columns: 1fr; }
.item--wide, .item--flip { grid-template-columns: var(--cols); }
.item--half { grid-template-columns: 1fr 1fr; }
.item[data-align="end"] .desc { align-self: end; }
.item[data-align="start"] .desc { align-self: start; }

/* ============ Sketchbook ============ */
.sketches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 48px; }
.sketches .art { aspect-ratio: 3 / 4; overflow: hidden; }
.sketches .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sketches .art:hover img { transform: scale(1.04); }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 359fr 594fr; gap: var(--gap); align-items: start; }
.about__intro { display: flex; flex-direction: column; gap: 32px; }
.about__main { display: flex; flex-direction: column; gap: 40px; }
.about__img { width: 100%; aspect-ratio: 594 / 382; object-fit: cover; }
.about__main p + p { margin-top: 1.2em; }

/* ============ Contact ============ */
.contact { display: grid; grid-template-columns: 359fr 594fr; gap: var(--gap); align-items: start; }
.contact__body { display: flex; flex-direction: column; gap: 24px; }
.contact__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact__links a {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.contact__links a:hover { color: var(--orange); }
.contact__links .label { display: inline-block; min-width: 92px; color: var(--ink); font-weight: 400; text-decoration: none; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.footer small { font-size: 12px; color: var(--grey); letter-spacing: 0; }
.footer a { display: inline-flex; color: var(--ink); }
.footer a:hover { color: var(--orange); }

/* ============ Lightbox ============ */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(12, 14, 30, .97); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 92vw; }
.lb__img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; background: transparent; }
.lb__cap { color: #fff; font: 700 20px/1.2 "Sulphur Point", sans-serif; text-align: center; min-height: 1.2em; }
.lb__btn {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 32px; line-height: 1;
}
.lb__btn:hover { color: var(--orange); }
.lb__close { top: 8px; right: 8px; }
.lb__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; top: 22px; left: 20px; color: rgba(255,255,255,.7); font-size: 14px; }
body.lb-open { overflow: hidden; }

/* ============ Smaller desktops ============ */
@media (max-width: 1280px) {
  :root { --pad: 64px; }
}

/* ============ Tablet (top navigation) ============ */
@media (max-width: 1099px) {
  :root { --pad: 40px; --h1: 56px; --label: 16px; --item-gap: 80px; }
  .nav {
    position: sticky; top: 0; inset: auto; width: auto; height: 128px;
    flex-direction: row; align-items: stretch; justify-content: space-between;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 24px;
  }
  .nav__logo { padding: 0; border: 0; }
  .nav__logo img { width: 88px; }
  .nav__links { flex-direction: row; align-items: flex-end; padding: 0; gap: 24px; }
  main, .footer { margin-left: 0; }
  .section { scroll-margin-top: 128px; padding: 140px 0 0; }
  .section + .section { padding-top: 140px; }
  .contact-section { padding-bottom: 40px !important; }

  .hero { height: auto; padding-top: 0; }
  .hero__img { position: static; width: 100%; max-width: 792px; margin: 0 auto; }
  .hero .wrap { height: auto; }
  .hero__name { position: relative; left: 0; top: 0; margin-top: -13px; }
  .intro { padding: 40px 0; }
  .intro__text { max-width: none; }

  .item--lead { grid-template-columns: 1fr; }
  .item--wide { grid-template-columns: 1fr; }
  .item--flip { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
  .sketches { grid-template-columns: repeat(4, 1fr); }
}

/* ============ Mobile ============ */
@media (max-width: 639px) {
  :root { --pad: 16px; --h1: 40px; --h3: 24px; --lede: 24px; --tag: 16px; --item-gap: 80px; }
  .nav { position: static; height: auto; flex-direction: column; gap: 16px; padding: 12px 16px 12px; }
  .nav__logo { justify-content: flex-start; }
  .nav__logo img { width: 80px; }
  .nav__links { justify-content: space-between; gap: 8px; }
  .nav__links a { font-size: 15px; }
  .nav__links .long { display: none; }
  .nav__links .short { display: inline; }
  .section { scroll-margin-top: 0; padding-top: 100px; }
  .section + .section { padding-top: 100px; }
  .hero__img { width: calc(100% + 20px); max-width: none; margin-left: -10px; }
  .intro { padding: 16px 0 20px; }
  .intro__labels { flex-direction: column; }
  .item--flip, .item--half { grid-template-columns: 1fr; }
  .item--flip .desc { order: 2; }
  .sketches { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 32px; }
  .lb__prev, .lb__next { top: auto; bottom: 12px; transform: none; }
}
@media (max-width: 359px) {
  .nav__links a { font-size: 13px; }
}
