/* Tangled Crow. Near-black, bone, oxblood. Square edges, no shadows, no gradients. */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #121110;
  --bone: #EDE6DA;
  --soft: #CFC7BA;
  --ox: #8E2C2C;
  --line: #2E2A27;
  --panel: #1A1816;
  --warm: #D9A79B;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--bone); }
a:hover { color: var(--warm); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: var(--bone); color: var(--ink); padding: 12px 18px; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--ink); }

/* Top bar */
.topbar, .testbar { margin: 0; text-align: center; padding: 10px 20px; font-size: 16px; letter-spacing: 0.04em; }
.topbar { background: var(--ox); color: #fff; }
.testbar { background: var(--bone); color: var(--ink); font-weight: 600; }

/* Logo and menu */
.masthead {
  max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) 22px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.brand:hover { color: var(--bone); }
.mark { display: block; }
.wordmark {
  font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.1;
  letter-spacing: 0.14em; text-transform: uppercase; margin-right: -0.14em;
}
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; font-size: 17px; font-weight: 500; }
.menu a {
  text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  border-bottom: 1px solid transparent;
}
.menu a[aria-current] { border-bottom-color: var(--bone); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  background: var(--bone); color: var(--ink); border: 0; border-radius: 0;
  padding: 14px 32px; font: 600 17px/1.2 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: #fff; color: var(--ink); }
.button--ox { background: var(--ox); color: #fff; }
.button--ox:hover { background: #a23535; color: #fff; }
.button[disabled] { opacity: 0.6; cursor: default; }
.button--quiet {
  background: transparent; color: var(--bone); border: 1px solid var(--soft);
  min-height: 44px; padding: 8px 16px; font-weight: 500; font-size: 16px;
}
.button--quiet:hover { background: transparent; color: var(--warm); border-color: var(--warm); }

/* Homepage: the big photo */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 0; }
.hero-frame {
  position: relative; height: clamp(420px, 56vw, 640px); background: var(--panel);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; padding: 56px 24px;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shop { position: relative; padding: 18px 48px; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; min-height: 58px; }

/* With no Browse section the photo would touch the band below it. */
.hero + .band { margin-top: 80px; }

/* Homepage: browse by kind */
.browse, .newly, .shop { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--gutter); }
.browse h2 { font-size: 50px; text-align: center; margin-bottom: 36px; }
.browse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.browse-tile { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; }
.browse-tile .frame { aspect-ratio: auto; height: 380px; }
.browse-name { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; }

/* Photo frames */
.frame { width: 100%; aspect-ratio: 4 / 5; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--empty { display: flex; align-items: center; justify-content: center; color: #3F3A36; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame-mark { display: block; }

/* Homepage: the oxblood band */
.band { background: var(--ox); color: #fff; }
.band-in {
  max-width: 900px; margin: 0 auto; padding: 88px var(--gutter); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.band-line { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1.25; font-style: italic; font-weight: 500; }
.band-link { color: #fff; font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; min-height: 44px; }
.band-link:hover { color: #fff; text-decoration-thickness: 2px; }

/* Piece cards */
.newly-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 36px; }
.newly-head h2 { font-size: 48px; }
.more { font-size: 17px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.piece-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card-name { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.card-price, .card-label { font-size: 17px; color: var(--soft); }
.card-label { letter-spacing: 0.04em; }
.card:hover .card-price, .card:hover .card-label { color: var(--soft); }

/* Sign-up */
.join { border-top: 1px solid var(--line); }
.join-in { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter); text-align: center; }
.join h2 { font-size: 42px; margin-bottom: 24px; }
.join-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.join-form input[type="email"] {
  flex: 1 1 280px; min-height: 56px; padding: 14px 18px; font: 400 18px/1.3 var(--sans);
  background: transparent; border: 1.5px solid var(--bone); border-radius: 0; color: var(--bone);
}
.join-form input::placeholder { color: var(--soft); opacity: 1; }
.join-form .button { min-height: 56px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 16px 0 0; min-height: 1.6em; color: var(--bone); }
.form-note:empty { margin: 0; min-height: 0; }
.form-note a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px var(--gutter); text-align: center; font-size: 16px; color: var(--soft); }

/* Shop */
.page-title { font-size: 54px; text-align: center; margin-bottom: 28px; }
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.filter a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px;
  border: 1px solid var(--line); text-decoration: none; font-size: 17px; font-weight: 500; color: var(--soft);
}
.filter a:hover { border-color: var(--soft); color: var(--bone); }
.filter a[aria-current] { border-color: var(--bone); color: var(--bone); }
.quiet { color: var(--soft); text-align: center; }

/* One piece */
.piece {
  max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 88px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start;
}
.piece-main { width: 100%; height: auto; border: 1px solid var(--line); background: var(--panel); }
.piece-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.piece-more img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); background: var(--panel); }
.crumb { margin: 0 0 6px; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.crumb a { color: var(--soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumb a:hover { color: var(--warm); }
.piece-name { font-size: 56px; font-weight: 600; }
.piece-price, .piece-label { margin: 14px 0 0; font-size: 22px; color: var(--bone); }
.piece-label { color: var(--soft); letter-spacing: 0.04em; }
.piece-desc { margin-top: 28px; font-size: 19px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--soft); font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.facts dd { margin: 0; }
.add { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.add .button { flex: 1 1 220px; min-height: 58px; font-size: 18px; }
.add .form-note { flex: 1 1 100%; margin-top: 4px; }
.qty { display: flex; flex-direction: column; gap: 6px; }
.qty label { font-size: 16px; color: var(--soft); }
select {
  min-height: 58px; min-width: 88px; padding: 8px 14px; font: 400 18px/1.3 var(--sans);
  background: var(--ink); color: var(--bone); border: 1.5px solid var(--bone); border-radius: 0;
}

/* Our story, thank-you, not found */
.story, .note-page, .cart { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.story-text p { font-size: 20px; line-height: 1.75; margin-bottom: 1.3em; }
.note-page { text-align: center; }
.note-page p { font-size: 20px; }
.note-page .button { margin-top: 12px; }

/* Cart */
.cart { max-width: 860px; }
.cart-list { border-top: 1px solid var(--line); }
.cart-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { width: 96px; height: 120px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { display: inline-block; padding: 7px 0; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.cart-each { color: var(--soft); font-size: 17px; margin: 0 0 10px; }
.cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cart-controls select { min-height: 44px; min-width: 76px; }
.cart-line-total { font-size: 19px; white-space: nowrap; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 24px 0 8px; font-size: 22px; }
.cart-sum strong { font-weight: 600; }
.cart-ship { color: var(--soft); margin: 0 0 28px; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cart-actions .button--ox { flex: 1 1 260px; min-height: 60px; font-size: 19px; }
.cart-messages { margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--soft); }
.cart-messages p { margin: 0; }
.cart-messages p + p { margin-top: 8px; }
.cart-empty { text-align: center; }
.cart-empty p { font-size: 20px; color: var(--soft); }

/* Tablets and small laptops */
@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .piece { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; }
  .piece-name { font-size: 46px; }
  .browse, .newly, .shop { padding-top: 64px; padding-bottom: 64px; }
}

/* Phones */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .topbar, .testbar { font-size: 15px; padding: 9px 12px; }
  .masthead { padding: 24px var(--gutter) 10px; gap: 12px; }
  .mark { width: 52px; height: 52px; }
  .wordmark { font-size: 31px; letter-spacing: 0.12em; margin-right: -0.12em; }
  .menu { gap: 0 24px; }
  .hero { padding-top: 24px; }
  .hero + .band { margin-top: 52px; }
  .hero-frame { height: 440px; padding: 36px 20px; }
  .browse, .newly, .shop { padding-top: 52px; padding-bottom: 52px; }
  .browse h2 { font-size: 40px; margin-bottom: 24px; }
  .browse-tile .frame { height: 320px; }
  .band-in { padding: 60px var(--gutter); }
  .band-line { font-size: 32px; }
  .newly-head { margin-bottom: 24px; }
  .newly-head h2 { font-size: 38px; }
  .piece-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .join-in { padding: 56px var(--gutter); }
  .join h2 { font-size: 34px; }
  .join-form .button { flex: 1 1 100%; }
  .page-title { font-size: 42px; }
  .filter { margin-bottom: 32px; }
  .piece { padding-top: 24px; padding-bottom: 64px; }
  .piece-name { font-size: 42px; }
  .facts > div { grid-template-columns: 84px minmax(0, 1fr); }
  .add .button { flex: 1 1 100%; }
  .story, .note-page, .cart { padding: 48px var(--gutter) 72px; }
  .cart-row { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
  .cart-thumb { width: 76px; height: 95px; }
  .cart-line-total { grid-column: 2; }
  .cart-name { font-size: 24px; padding: 8px 0; }
}

/* Two cards across on larger phones and small tablets */
@media (min-width: 480px) and (max-width: 600px) {
  .piece-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}

@media print {
  .topbar, .testbar, .menu, .join, .skip { display: none; }
  body { background: #fff; color: #000; }
}
