:root {
  --paper: #f6f1e8;
  --paper-deep: #efe7d9;
  --card: #fbf8f2;
  --ink: #211e1a;
  --ink-soft: #3b352e;
  --muted: #766e63;
  --line: #ded3c3;
  --line-strong: #c9bca8;
  --accent: #a84e2c;
  --accent-dark: #7f371b;
  --white: #fffdf9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
  --gutter: 32px;
  --shadow: 0 24px 70px rgba(47, 37, 25, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: #e7c8b5;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.text-link {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 78, 44, 0.45);
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}

/* Home hero */

.hero {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 126px) var(--gutter) clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  align-items: end;
  gap: clamp(40px, 7vw, 110px);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 9.2vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.tagline {
  max-width: 32ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-style: italic;
  line-height: 1.35;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 22% 15%, rgba(255, 253, 249, 0.75), transparent 45%),
    linear-gradient(155deg, var(--paper-deep), #e6d7c1);
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(33, 30, 26, 0.14);
  pointer-events: none;
}

.hero-mark span {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  opacity: 0.72;
}

.hero-mark small {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
}

.hero-portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About */

.about {
  border-top: 1px solid var(--line);
}

.about-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(62px, 8vw, 104px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(40px, 8vw, 118px);
}

.about-aside {
  padding-top: 8px;
}

.about-note {
  max-width: 22ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.about-copy h2 {
  max-width: 18ch;
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.about-copy p {
  max-width: 62ch;
  margin: 0 0 1.1em;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-links a {
  color: var(--accent-dark);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 78, 44, 0.4);
  padding-bottom: 2px;
}

.contact-links a:hover {
  border-color: var(--accent);
}

/* Selected work */

.selected {
  padding: clamp(58px, 7vw, 92px) 0 clamp(70px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.work-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.work-card {
  display: block;
  text-decoration: none;
}

.work-frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover .work-frame img {
  transform: scale(1.025);
}

.work-title {
  display: block;
  padding-top: 11px;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
}

/* Showcase */

.page-head {
  padding: clamp(64px, 8vw, 104px) 0 clamp(34px, 4vw, 52px);
}

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.piece-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lede {
  max-width: 54ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.gallery-masonry {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 9vw, 120px);
  columns: 3;
  column-gap: clamp(16px, 2vw, 24px);
}

.art-card {
  break-inside: avoid;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
}

.art-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  cursor: zoom-in;
  overflow: hidden;
}

.art-open img {
  width: 100%;
  height: auto;
  transition: opacity 220ms ease;
}

.art-open:hover img {
  opacity: 0.93;
}

.art-card figcaption {
  padding: 10px 2px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.4;
}

.empty-state {
  max-width: 680px;
  margin: 10px auto clamp(80px, 10vw, 130px);
  padding: clamp(38px, 6vw, 70px) var(--gutter);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 44ch;
  margin: 0 auto;
  color: var(--muted);
}

.empty-state .kicker {
  margin-bottom: 12px;
}

/* Lightbox */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 21, 18, 0.94);
  backdrop-filter: blur(5px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(96vw, 1500px);
  max-height: 94vh;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 94vh;
  margin: 0;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 64px);
  margin: auto;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 13px;
  color: #e7dfd3;
  font-family: var(--serif);
  font-size: 1.02rem;
}

.lightbox-count {
  color: #9e9589;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.lightbox button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}

.lightbox-nav {
  font-family: var(--serif);
}

/* Message pages */

.message-page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--gutter) 120px;
}

.message-page h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.message-page p {
  max-width: 52ch;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  white-space: nowrap;
}

.footer-inner a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
    gap: 48px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-aside {
    display: flex;
    align-items: baseline;
    gap: 18px;
  }

  .about-aside .kicker {
    margin: 0;
  }

  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 22px;
  }

  .header-inner {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 5.4rem);
  }

  .tagline {
    margin-top: 22px;
  }

  .hero-mark,
  .hero-portrait {
    max-width: 360px;
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .section-head .text-link {
    display: inline-block;
    margin-top: 14px;
  }

  .page-head-row {
    display: block;
  }

  .piece-count {
    margin-top: 16px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner a {
    display: inline-block;
    margin-top: 12px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    max-width: 100%;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-figure figcaption {
    display: block;
    padding-right: 4px;
    padding-left: 4px;
  }

  .lightbox-count {
    display: block;
    margin-top: 3px;
  }
}

@media (max-width: 520px) {
  .gallery-masonry {
    columns: 1;
  }

  .work-strip {
    grid-template-columns: 1fr;
  }

  .about-note {
    display: none;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.64rem;
  }
}

@media (max-width: 900px) {
  .work-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .work-strip {
    grid-template-columns: 1fr;
  }
}

/* Commission customer pages */

.commission-login {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(70px, 11vw, 140px) var(--gutter) clamp(80px, 11vw, 130px);
  text-align: center;
}

.commission-login h1 {
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.commission-login .lede {
  max-width: 44ch;
  margin: 22px auto 38px;
}

.commission-login .kicker {
  text-align: center;
}

.commission-form {
  max-width: 430px;
  margin: 0 auto;
  text-align: left;
}

.commission-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.code-input::placeholder {
  color: #b0a496;
}

.code-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 78, 44, 0.12);
}

.commission-form .button {
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.button:hover {
  background: #000;
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.button-wide {
  width: 100%;
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #8b2f17;
  font-size: 0.8rem;
  text-align: center;
}

.commission-login-foot {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.commission-signout {
  margin: 0 0 8px;
}

.quiet-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.quiet-button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
