/* Frassay storefront. Tokens and type follow the Instagram lookbook system
   (marketing/instagram/frassay-instagram-branding.html). Editorial photos take the
   grade; product photos stay natural so colors and plating read true. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 600; font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 600; font-display: swap;
  src: url("fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --espresso: #17130F;
  --umber: #211B16;
  --champagne: #C9B593;
  --ivory: #EEE6D8;
  --taupe: #8B7F71;
  --hair: rgba(201, 181, 147, .22);
  --serif: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --grade: contrast(1.06) saturate(.72) brightness(.9) sepia(.16);
  --gutter: clamp(1rem, 5vw, 4rem);
  --bar: 4.25rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--espresso); scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--espresso); color: var(--ivory); font-family: var(--serif); font-weight: 300;
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 200; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 1px solid var(--champagne); outline-offset: 4px; }
::selection { background: var(--champagne); color: var(--espresso); }

.skip { position: absolute; left: -999px; top: 0; z-index: 30; padding: .75rem 1rem; background: var(--ivory); color: var(--espresso); }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.logo { display: block; aspect-ratio: 1546.47 / 238.22; height: auto; color: var(--champagne); }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); margin-bottom: 1.25rem; }
.kicker a:hover { color: var(--ivory); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 2rem;
  background: var(--champagne); color: var(--espresso); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  transition: background-color .25s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--ivory); }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.text-link { color: var(--champagne); border-bottom: 1px solid var(--hair); padding-bottom: 2px; transition: border-color .25s var(--ease); }
.text-link:hover { border-color: var(--champagne); }

/* ---------- Bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar); background: rgba(23, 19, 15, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.bar-in { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand .logo { width: clamp(108px, 11vw, 140px); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.nav a { color: var(--taupe); padding: .5rem 0; transition: color .2s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ivory); }
.nav .nav-etsy { color: var(--champagne); }
@media (max-width: 420px) { .nav { gap: .9rem; font-size: .72rem; letter-spacing: .12em; } }

/* ---------- Editorial photographs ---------- */
.ph { position: relative; overflow: hidden; background: var(--umber); }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1.6s var(--ease); }
.ph::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(23, 19, 15, .55)); }

/* ---------- Opening ---------- */
.open { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100dvh - var(--bar)); }
.open-ph { min-height: calc(100dvh - var(--bar)); }
.open-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5.5rem); }
.open h1 { font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: .98; letter-spacing: -.02em; margin-bottom: 2rem; }
.open-meta { color: var(--taupe); max-width: 40ch; font-size: .98rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) {
  .open { grid-template-columns: 1fr; min-height: 0; }
  .open-ph { min-height: 0; aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: no-preference) {
  .open-ph img { animation: settle 2.4s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

/* ---------- Sections ---------- */
.band { padding-top: clamp(5rem, 12vw, 9rem); }
.band-last { padding-bottom: clamp(5rem, 10vw, 8rem); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head h2 { font-style: italic; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.head p { margin: 0; color: var(--taupe); max-width: 46ch; justify-self: end; font-size: .95rem; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } .head p { justify-self: start; } }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(.75rem, 2vw, 1.5rem); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-link { display: block; }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--umber); margin-bottom: .9rem; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.card-img .alt { opacity: 0; }
@media (hover: hover) {
  .card-link:hover .card-img img { transform: scale(1.03); }
  .card-link:hover .has-alt .alt { opacity: 1; }
}
.card-name { font-size: 1.02rem; font-weight: 300; line-height: 1.35; margin-bottom: .3rem; }
.card-price { margin: 0; color: var(--champagne); font-size: .92rem; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Ivy story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.story-ph { aspect-ratio: 4 / 5; }
.story-ph-2 { align-self: end; }
.story-copy h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: 1.75rem; }
.story-copy p { color: var(--taupe); max-width: 36ch; }
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr 1fr; }
  .story-copy { grid-column: 1 / -1; grid-row: 1; }
}

/* ---------- Collections index ---------- */
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--hair); }
.index a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--hair);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 200; transition: color .2s var(--ease), padding .3s var(--ease); }
.index small { font-size: .82rem; color: var(--taupe); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .index a:hover { color: var(--champagne); padding-left: .5rem; } }
@media (max-width: 760px) { .index { grid-template-columns: 1fr; } }

/* ---------- How to order ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.how-ph { aspect-ratio: 4 / 5; }
.how-copy h2 { font-style: italic; font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 1.5rem; }
.how-copy > p { color: var(--taupe); max-width: 46ch; }
.facts { margin: 2rem 0 2.5rem; border-top: 1px solid var(--hair); }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.facts dt { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); padding-top: .2rem; }
.facts dd { margin: 0; font-size: .95rem; }
@media (max-width: 760px) {
  .how { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Shop archive ---------- */
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-style: italic; font-size: clamp(2.6rem, 6vw, 4.8rem); margin-bottom: 1.25rem; }
.page-intro { color: var(--taupe); max-width: 58ch; }
.page-intro p:last-child { margin-bottom: 0; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) clamp(2rem, 4vw, 3rem); padding: 0 var(--gutter) .25rem; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 1rem; border: 1px solid var(--hair);
  font-size: .9rem; color: var(--taupe); transition: color .2s var(--ease), border-color .2s var(--ease); }
.chips a:hover { color: var(--ivory); border-color: var(--taupe); }
.chips a[aria-current] { color: var(--espresso); background: var(--champagne); border-color: var(--champagne); }
.chips small { font-size: .78rem; opacity: .75; font-variant-numeric: tabular-nums; }
.shop-grid { padding-bottom: clamp(3rem, 6vw, 5rem); }
.pager { padding-bottom: clamp(5rem, 10vw, 8rem); }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .9rem;
  border: 1px solid var(--hair); color: var(--taupe); font-variant-numeric: tabular-nums; }
.pager a:hover { color: var(--ivory); border-color: var(--taupe); }
.pager .current { color: var(--espresso); background: var(--champagne); border-color: var(--champagne); }
.pager .dots { border-color: transparent; }
.empty { color: var(--taupe); padding-bottom: 6rem; }

/* ---------- Single product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(1.5rem, 4vw, 3rem); }
.gallery { display: grid; gap: .75rem; }
.gallery img { width: 100%; background: var(--umber); }
.buy-in { position: sticky; top: calc(var(--bar) + 2rem); padding-bottom: 2rem; }
.buy h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; margin-bottom: 1rem; }
.buy-price { color: var(--champagne); font-size: 1.3rem; font-variant-numeric: lining-nums tabular-nums; margin-bottom: 1.5rem; }
.buy-short { color: var(--ivory); margin-bottom: 2rem; }
.buy-note { color: var(--taupe); font-size: .88rem; margin: 1rem 0 2.5rem; }
.buy-desc { border-top: 1px solid var(--hair); padding-top: 2rem; color: var(--taupe); font-size: .95rem; }
.buy-desc p { margin-bottom: 1.6em; }
.buy-desc h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); font-weight: 300; margin-bottom: .6rem; }
.buy-desc ul { list-style: none; margin: 0 0 1.6em; padding: 0; }
.buy-desc li { padding: .2rem 0; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding-top: 0; }
  /* Swipeable strip; the next photo peeks in so the swipe is discoverable. */
  .gallery { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery img { flex: 0 0 88%; scroll-snap-align: start; aspect-ratio: 1; object-fit: cover; }
  .gallery img:only-child { flex-basis: 100%; }
  .buy-in { position: static; }
}

/* ---------- Pages ---------- */
.prose { max-width: 44rem; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.prose h1 { font-style: italic; font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 2rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.5rem 0 1rem; }
.prose p, .prose li { color: var(--taupe); }
.prose a { color: var(--champagne); border-bottom: 1px solid var(--hair); }
.prose a.btn { color: var(--espresso); border: 0; }
.prose-center { text-align: center; }
.prose-center p { margin-left: auto; margin-right: auto; max-width: 40ch; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--hair); padding-top: clamp(3rem, 6vw, 4.5rem); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.foot-brand .logo { width: 150px; margin-bottom: 1.25rem; }
.foot-brand p { color: var(--taupe); font-size: .95rem; }
.foot-nav h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); font-weight: 300; margin-bottom: 1rem; }
.foot-nav h2:not(:first-child) { margin-top: 2rem; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-nav a { color: var(--taupe); font-size: .95rem; transition: color .2s var(--ease); }
.foot-nav a:hover { color: var(--ivory); }
.foot-small { color: var(--taupe); font-size: .82rem; padding-top: 3rem; padding-bottom: 2rem; margin: 0 auto; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* WordPress admin bar offsets the sticky bar for signed-in previews. */
.admin-bar .bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .bar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bar { top: 0; } }
