:root {
  --paper: #f3efe6;
  --paper-2: #e7e1d6;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: rgba(28, 25, 21, 0.14);
  --accent: #0e4f4a;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Inter", "Helvetica Neue", sans-serif;
  --max: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

img { max-width: 100%; display: block; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.site-nav .mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.site-nav nav a:hover { color: var(--accent); }

.wrap {
  width: min(var(--max), calc(100% - clamp(2.2rem, 7vw, 5rem)));
  margin: 0 auto;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.cloud-wrap {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 1rem;
}

.cloud {
  position: relative;
  width: min(50rem, calc(100% - 1.2rem));
  height: 44rem;
  margin: 0 auto;
}

.cloud-center {
  position: absolute;
  left: 50%;
  top: 33%;
  z-index: 2;
  width: 7.6rem;
  transform: translate(-50%, -50%);
  text-align: center;
}

.cloud-center h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.cloud-center p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.cloud-hint {
  margin: 0.55rem 0 0;
  max-width: 11rem;
  margin-inline: auto;
  font-size: 0.68rem !important;
  line-height: 1.35;
}

.orb-primary img {
  box-shadow: 0 12px 26px rgba(14, 79, 74, 0.22);
  outline: 2px solid rgba(14, 79, 74, 0.35);
  outline-offset: 2px;
}

.orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  width: 7rem;
  transform: translateX(-50%);
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.orb img {
  display: block;
  width: 5.65rem;
  height: 5.65rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(28, 25, 21, 0.16);
}

.orb-copy {
  display: block;
  margin-top: 0.35rem;
}

.orb strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.orb span {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.orb:hover strong,
.orb:focus-visible strong { color: var(--accent); }

.hero {
  padding: clamp(3.2rem, 8vw, 6.5rem) 0 clamp(2.2rem, 5vw, 3.5rem);
}

.hero h1 {
  margin: 0 0 1.1rem;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.4vw, 4.8rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero .lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.work {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.work-shot {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.work-copy { padding: 0.95rem 0 0.2rem; }

.work-copy h2 {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.work-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.work:hover h2 { color: var(--accent); }

.band {
  border-top: 1px solid var(--line);
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}

.band-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.band h2,
.section-title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.band p,
.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.status-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.status-list li:last-child { border-bottom: 1px solid var(--line); }

.status-list strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
}

.status-list a {
  color: inherit;
  text-decoration: none;
}

.status-list a:hover {
  color: var(--accent);
}

.status-list span,
.status-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}

.note {
  display: block;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.note em {
  display: block;
  margin-bottom: 0.4rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.note strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.note span {
  color: var(--muted);
  line-height: 1.5;
}

.note:hover strong { color: var(--accent); }

.page-hero {
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.6rem;
  align-items: center;
}

.page-hero img.mark-art {
  width: 5.25rem;
  height: 5.25rem;
  object-fit: cover;
}

.page-hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.6;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn:hover { color: var(--paper); background: var(--accent); border-color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem 0.9rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.gallery figure { margin: 0; }

.gallery img { width: 100%; height: auto; }

.gallery figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 16.5rem));
  justify-content: start;
  gap: 1.25rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.phones figure { margin: 0; }

.phones img {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(28, 25, 21, 0.12);
}

.phones figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-still {
  display: grid;
  grid-template-columns: minmax(0, 26rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.product-still img { width: 100%; }

.product-still p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

.doc-shell {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.6rem 1.35rem 4.5rem;
}

.doc-shell .crumb,
.essay .crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.doc-shell .crumb a,
.essay .crumb a {
  color: var(--muted);
  text-decoration: none;
}

.doc-shell .crumb a:hover,
.essay .crumb a:hover { color: var(--accent); }

.doc-shell h1,
.essay h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.8rem;
}

.doc-shell h2,
.essay h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 2.1rem 0 0.55rem;
}

.doc-shell p,
.doc-shell li,
.essay p,
.essay li {
  color: #3a342c;
  line-height: 1.7;
}

.doc-shell .muted,
.essay .dateline {
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-shell ul,
.essay ul { padding-left: 1.15rem; }

.essay {
  width: min(40rem, calc(100% - 2.6rem));
  margin: 0 auto;
  padding: 2.6rem 0 4.5rem;
}

.essay .standfirst {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
}

@media (max-width: 980px) {
  .cloud {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    width: min(40rem, calc(100% - 2.4rem));
  }

  .cloud-center {
    position: static;
    transform: none;
    width: auto;
    text-align: left;
    margin-bottom: 0.4rem;
  }

  .cloud-center h1 {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
  }

  .orb {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: 3.6rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: center;
    text-align: left;
  }

  .orb img {
    grid-row: 1 / span 2;
    width: 3.6rem;
    height: 3.6rem;
    margin: 0;
  }

  .orb-copy {
    display: contents;
    margin: 0;
    text-align: left;
  }

  .orb strong { grid-column: 2; grid-row: 1; }
  .orb span { grid-column: 2; grid-row: 2; }
}

@media (max-width: 900px) {
  .portfolio,
  .gallery,
  .notes,
  .band-grid,
  .product-still,
  .phones,
  .status-list li {
    grid-template-columns: 1fr;
  }

  .phones { justify-content: stretch; }
  .page-hero { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
