/* Kayla Dickelman - static site. No build step, no dependencies. */

:root {
  --paper: #ece6da;
  --paper-2: #f4f0e7;
  --ink: #161412;
  --ink-soft: #5a554d;
  --ink-faint: #8f887c;
  --rule: #cfc6b6;
  --max: 1180px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.7 var(--sans);
  letter-spacing: 0.01em;
}

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

a { color: inherit; text-decoration: none; }

/* ---------------- top bar ---------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 56px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.mark {
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: lowercase;
}

.bar nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.bar nav a:hover { color: var(--ink); }

/* ---------------- hero ---------------- */

.hero {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(34px, 7vw, 78px) clamp(18px, 5vw, 56px) 0;
}

.hero img {
  width: 100%;
  max-height: 64vh;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) contrast(1.08);
}

.hero-type {
  text-align: center;
  padding-bottom: clamp(26px, 5vw, 52px);
}

.hero-type h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--ink);
}

.tagline {
  margin: 14px 0 0;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------- intro ---------------- */

.intro {
  max-width: 640px;
  margin: clamp(40px, 8vw, 96px) auto;
  padding: 0 clamp(18px, 5vw, 56px);
  text-align: center;
}

.intro p { margin: 0 0 18px; color: var(--ink-soft); }

.intro-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro-links a { border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
.intro-links a:hover { border-color: var(--ink); }

/* ---------------- work grid ---------------- */

.work { padding: 0 clamp(18px, 5vw, 56px); max-width: var(--max); margin: 0 auto; }

.collection { margin-bottom: clamp(48px, 9vw, 110px); }

.collection-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}

.collection-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: lowercase;
}

.collection-head p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
  max-width: 46ch;
}

.grid {
  columns: 4 210px;
  column-gap: 16px;
}

.tile {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  break-inside: avoid;
  text-align: left;
  font: inherit;
  color: inherit;
}

.tile img {
  width: 100%;
  filter: grayscale(1);
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.tile:hover img, .tile:focus-visible img { opacity: 0.74; }

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; }

.tile:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------------- panels ---------------- */

.panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}

.panel.alt { background: var(--paper-2); max-width: none; }
.panel.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.panel h2, .about h2 {
  margin: 0 0 30px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: lowercase;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 4vw, 48px);
}

.card {
  border: 1px solid var(--rule);
  padding: 26px 24px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rate { list-style: none; margin: 0 0 16px; padding: 0; }

.rate li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 14px;
}

.rate li span:last-child { font-variant-numeric: tabular-nums; }

.rate-lead {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.fine { font-size: 12px; line-height: 1.75; color: var(--ink-faint); margin: 0 0 20px; }
.fine.center { text-align: center; margin: 34px auto 0; max-width: 50ch; }

.lede { max-width: 58ch; margin: 0 0 34px; color: var(--ink-soft); }

.tiers { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 1px; background: var(--rule); }

.tiers li {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 90px;
  gap: 8px 20px;
  padding: 18px 4px;
  background: var(--paper-2);
}

.tiers .tier-name { font-size: 14px; }
.tiers .tier-terms { grid-column: 1; font-size: 12px; color: var(--ink-faint); }
.tiers .tier-price { grid-row: 1; color: var(--ink-faint); grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn.ghost { border-color: var(--rule); color: var(--ink-soft); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

/* ---------------- about ---------------- */

.about {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}

.about .emblem { width: 100%; max-width: 260px; mix-blend-mode: multiply; }
.about-type p { margin: 0 0 18px; color: var(--ink-soft); max-width: 56ch; }

.contact { font-size: 12px; letter-spacing: 0.14em; text-transform: lowercase; }
.contact a { border-bottom: 1px solid var(--rule); }
.contact a:hover { border-color: var(--ink); }

/* ---------------- footer ---------------- */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 56px) 40px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

footer .btyt { text-transform: none; letter-spacing: 0.08em; opacity: 0.7; }
footer .btyt:hover { opacity: 1; }

/* ---------------- lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 12, 13, 0.94);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.lightbox[hidden] { display: none; }

.lb-figure {
  margin: 0;
  display: grid;
  gap: 18px;
  max-height: 100%;
  justify-items: center;
}

.lb-figure img {
  max-height: 68vh;
  max-width: 100%;
  object-fit: contain;
}

.lb-figure figcaption { color: #ddd9d2; text-align: center; }

.lb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  margin-bottom: 16px;
}

.lb-series { color: #86837d; }

.lb-buy { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.lb-buy .btn {
  margin: 0;
  border-color: #6f6c66;
  color: #f0eee9;
}

.lb-buy .btn:hover { background: #f0eee9; color: #17171a; border-color: #f0eee9; }

.lb-close, .lb-nav {
  position: absolute;
  background: none;
  border: 0;
  color: #cfccc6;
  cursor: pointer;
  font: inherit;
  padding: 12px;
}

.lb-close {
  top: 10px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lb-nav { top: 50%; transform: translateY(-50%); font-size: 20px; }
.lb-nav.prev { left: 4px; }
.lb-nav.next { right: 4px; }
.lb-close:hover, .lb-nav:hover { color: #fff; }

/* ---------------- small screens ---------------- */

@media (max-width: 640px) {
  .grid { columns: 2 130px; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .about { grid-template-columns: 1fr; }
  .about .emblem { max-width: 180px; }
  .hero img { max-height: 60vh; }
  .bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

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

[hidden] { display: none !important; }

/* ---------------- prices ---------------- */

.tile-tag { float: right; opacity: 0.85; }
.lb-price { color: #cfc6b6; }
.lb-price:empty { display: none; }
