/* petalmorrow.com — a herbarium in print. Sage, cream and blush from the PetalMorrow brand; IM Fell English (a digitized
   17th-century book face, the type of the old herbals) for display; Hanken Grotesk for reading and buying. */
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/im-fell-english-latin.woff2) format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/im-fell-english-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/hanken-grotesk-latin.woff2) format("woff2"); }

:root {
  --paper: #f3ead8;      /* brand cream: the page */
  --sheet: #e9dcc1;      /* a mounting sheet, one shade deeper */
  --card: #f9f4ea;       /* a printed label */
  --ink: #22301f;        /* deep moss: text */
  --ink-2: #4a5643;      /* secondary text, 6.5:1 on paper */
  --sage: #5f7d63;       /* brand sage: marks and rules */
  --moss: #46604a;       /* sage deep enough for cream text (5.8:1) */
  --band: #4f6b53;       /* the seasonal band */
  --blush: #e9b7a4;      /* brand blush: the berry, the chosen size */
  --rule: rgba(34, 48, 31, .2);
  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--paper) url(grain.svg) repeat; background-size: 240px;
  font: 400 1.0625rem/1.6 var(--text); font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---- masthead ---- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 26px; height: 42px; color: var(--sage); }
.brand__mark .sprig__berry, .footer__mark .sprig__berry { fill: var(--blush); }
.brand__name { font: 400 1.75rem/1 var(--display); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: .98rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sage); }
.nav .nav__etsy { border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px; }
.nav .nav__etsy:hover { background: var(--ink); color: var(--paper); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border-radius: 999px;
  font: 600 1rem/1.2 var(--text); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, color .2s, transform .2s; }
.btn--primary { background: var(--moss); color: var(--paper); }
.btn--primary:hover { background: var(--ink); }
.btn--quiet { border-color: var(--ink); color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--paper); }
.btn--wide { width: 100%; min-height: 56px; font-size: 1.06rem; }
.btn:active { transform: translateY(1px); }

/* ---- the herbarium label ---- */
.label { background: var(--card); border: 1px solid rgba(34, 48, 31, .55); outline: 1px solid rgba(34, 48, 31, .3); outline-offset: -6px;
  padding: 16px 18px 12px; font-family: var(--display); color: var(--ink); max-width: 330px; box-shadow: 0 1px 0 rgba(34, 48, 31, .06), 0 12px 30px -18px rgba(34, 48, 31, .5); }
.label__head { margin: 0 0 8px; text-align: center; font-style: italic; font-size: 1rem; color: var(--moss); border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.label__rows { margin: 0; }
.label__rows div { display: grid; grid-template-columns: 4.2em 1fr; align-items: baseline; padding: 3px 0; }
.label__rows dt { font-style: italic; font-size: .92rem; color: var(--ink-2); }
.label__rows dd { margin: 0; font-size: 1.12rem; line-height: 1.2; border-bottom: 1px dotted rgba(34, 48, 31, .45); padding-bottom: 2px; }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(32px, 6vw, 84px) 0 clamp(36px, 5vw, 72px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero__text { position: relative; }
.hero__sprig { position: absolute; width: clamp(150px, 20vw, 280px); height: auto; left: clamp(-120px, -7vw, -40px); top: -70px; color: var(--sage); opacity: .13; z-index: -1; }
.hero__sprig .sprig__berry { fill: var(--blush); opacity: 1; }
.hero__title { font-size: clamp(2.7rem, 6.4vw, 5.7rem); line-height: .98; letter-spacing: -.012em; max-width: 12ch; text-wrap: balance; }
.hero__lede { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 36em; margin: 28px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero__plate { position: relative; margin: 0; padding-bottom: 54px; }
.hero__img { display: block; background: var(--sheet); padding: clamp(10px, 1.4vw, 18px); box-shadow: 0 30px 60px -40px rgba(34, 48, 31, .6); }
.hero__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero__img--sheet img { mix-blend-mode: multiply; }
.label--hero { position: absolute; right: clamp(-4px, -1vw, -20px); bottom: 0; transform: rotate(-2deg); width: min(78%, 320px); }
@media (min-width: 900px) { .label--hero { right: auto; left: clamp(-60px, -4vw, -24px); } }

/* the one orchestrated moment: the sprig grows when the page opens */
@media (prefers-reduced-motion: no-preference) {
  .hero__sprig .sprig__stem { stroke-dasharray: 600; stroke-dashoffset: 600; animation: grow 1.6s cubic-bezier(.3, .6, .2, 1) .15s forwards; }
  .hero__sprig .sprig__leaf, .hero__sprig .sprig__bud, .hero__sprig .sprig__berry { opacity: 0; transform-box: fill-box; transform-origin: center; animation: unfurl .8s ease-out forwards; }
  .hero__sprig .sprig__leaf:nth-child(5), .hero__sprig .sprig__leaf:nth-child(6) { animation-delay: .7s; }
  .hero__sprig .sprig__leaf:nth-child(3), .hero__sprig .sprig__leaf:nth-child(4) { animation-delay: 1s; }
  .hero__sprig .sprig__leaf:nth-child(1), .hero__sprig .sprig__leaf:nth-child(2) { animation-delay: 1.3s; }
  .hero__sprig .sprig__bud, .hero__sprig .sprig__berry { animation-delay: 1.6s; }
  .label--hero { animation: settle .9s cubic-bezier(.2, .7, .2, 1) .9s backwards; }
}
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes unfurl { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes settle { from { opacity: 0; transform: translateY(14px) rotate(1deg); } }

/* ---- sections ---- */
.section { padding: clamp(48px, 7vw, 104px) 0; }
.section--page { padding-top: clamp(32px, 5vw, 64px); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(24px, 3.4vw, 44px); }
.section__title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.section__note { margin: 0; color: var(--ink-2); max-width: 34em; }
.page-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 52px); }
.page-title { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; text-wrap: balance; }
.page-intro { font-size: 1.15rem; color: var(--ink-2); margin: 18px 0 0; }
.crumbs { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); margin: 0 0 22px; }
.crumbs a { color: var(--ink-2); }

/* ---- product cards: each print hung on its mounting sheet ---- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px) clamp(12px, 2vw, 28px); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid--few { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card__link { display: block; text-decoration: none; }
.card__sheet { background: var(--sheet); aspect-ratio: 1; overflow: hidden; }
.card__sheet img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card__link:hover .card__sheet img { transform: scale(1.035); }
.card__text { padding-top: 14px; }
.card__no { margin: 0 0 2px; font: italic 400 .98rem/1.2 var(--display); color: var(--ink-2); }
.card__name { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.08; }
.card__link:hover .card__name { text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card__price { margin: 6px 0 0; font-size: .98rem; font-weight: 600; }

/* ---- seasonal band ---- */
.band { background: var(--band); color: var(--paper); padding: clamp(48px, 7vw, 96px) 0; }
.band__grid { display: grid; gap: 28px clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); align-items: start; } .band__text { position: sticky; top: 24px; } }
.band .section__title { margin-bottom: 16px; }
.band__link { margin: 18px 0 0; font-weight: 600; }
.grid--band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid.grid--band { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.band .section__note { color: rgba(243, 234, 216, .86); }
.band a { text-decoration-color: var(--blush); }
.band .card__sheet { background: var(--paper); }
.band .card__no { color: rgba(243, 234, 216, .8); }
.band .card__link:hover .card__name { text-decoration-color: var(--blush); }

/* ---- collections: a contents page ---- */
.index { max-width: 980px; }
.index .section__title { margin-bottom: 18px; }
.contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contents a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.contents__name { font: 400 clamp(1.6rem, 3.4vw, 2.5rem)/1.1 var(--display); }
.contents__dots { flex: 1; min-width: 24px; border-bottom: 2px dotted rgba(34, 48, 31, .35); transform: translateY(-6px); }
.contents__n { font: italic 400 1.1rem/1 var(--display); color: var(--ink-2); white-space: nowrap; }
.contents a:hover .contents__name { color: var(--moss); }
.contents a:hover .contents__dots { border-bottom-color: var(--sage); }
.index__all { margin: 26px 0 0; font-weight: 600; }

/* ---- studio ---- */
.studio { border-top: 1px solid var(--rule); }
.studio__grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) { .studio__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.studio .section__title { margin-bottom: 22px; max-width: 14ch; }
.studio p { color: var(--ink-2); max-width: 32em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 4px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 18px; padding: 20px 0; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: span 2; font: italic 400 2.6rem/1 var(--display); color: var(--sage); }
.steps h3 { font-size: 1.6rem; margin-bottom: 6px; }
.steps p { margin: 0; }

/* ---- product page ---- */
.product { padding-top: clamp(22px, 3vw, 40px); padding-bottom: clamp(48px, 7vw, 96px); }
.product__grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) { .product__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.gallery { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery::-webkit-scrollbar { display: none; }
.gallery__item { scroll-snap-align: center; background: var(--sheet); }
.gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__item--main img, .gallery__item--sheet img { mix-blend-mode: multiply; }
.gallery__item--sheet img { object-fit: contain; padding: 4%; }
@media (min-width: 900px) {
  .gallery { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; gap: 14px; }
  .gallery__item--main { grid-column: 1 / -1; }
}
.product__sticky { position: sticky; top: 24px; }
.product__no { margin: 0 0 10px; font: italic 400 1.15rem/1 var(--display); color: var(--moss); }
.product__name { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .98; text-wrap: balance; }
.product__title { margin: 14px 0 0; color: var(--ink-2); font-size: .98rem; }
.product__price { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 18px; }
.product__amount { font: 400 2.3rem/1 var(--display); }
.product__for { color: var(--ink-2); }
.sizes { border: 0; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sizes__legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.sizes__one { font-weight: 600; margin: 0 0 22px; }
.size { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid rgba(34, 48, 31, .4); border-radius: 10px; cursor: pointer; background: rgba(249, 244, 234, .55); transition: border-color .15s, background-color .15s; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size__label { font-weight: 600; }
.size__price { color: var(--ink-2); font-size: .95rem; }
.size:hover { border-color: var(--ink); }
.size:has(input:checked) { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink), inset 5px 0 0 var(--blush); }
.size:has(input:focus-visible) { outline: 2px solid var(--moss); outline-offset: 3px; }
.product__buy { margin: 0 0 12px; }
.product__fine { font-size: .93rem; color: var(--ink-2); margin: 0 0 28px; }
.product__desc { font-size: 1.08rem; border-top: 1px solid var(--rule); padding-top: 22px; }
.specs { margin: 8px 0 22px; border-top: 1px solid var(--rule); }
.specs div { display: grid; grid-template-columns: 8.4rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .97rem; }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--ink-2); }
.product__share { margin: 0 0 30px; font-weight: 600; }
.gallery__item--main { position: relative; }
.label--sheet { position: absolute; right: 4%; bottom: 4%; width: min(46%, 250px); padding: 10px 12px 6px; transform: rotate(-1.2deg); }
.label--sheet .label__head { font-size: .82rem; margin-bottom: 4px; padding-bottom: 4px; }
.label--sheet .label__rows div { grid-template-columns: 3.6em 1fr; padding: 1px 0; }
.label--sheet .label__rows dt { font-size: .78rem; }
.label--sheet .label__rows dd { font-size: .9rem; }
.related { margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--rule); }
.related .section__title { margin-bottom: 30px; }

/* ---- prose pages ---- */
.prose { max-width: 900px; }
.prose__part { display: grid; gap: 6px 40px; padding: 28px 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .prose__part { grid-template-columns: 13rem 1fr; } }
.prose__part h2 { font-size: 1.75rem; line-height: 1.1; }
.prose__part p { max-width: 36em; }
.prose__body > :last-child { margin-bottom: 0; }
.faq { margin: 0; }
.faq div { padding: 0 0 18px; }
.faq dt { font: 400 1.35rem/1.2 var(--display); margin-bottom: 4px; }
.faq dd { margin: 0; color: var(--ink-2); max-width: 36em; }

.empty { max-width: 34em; font-size: 1.1rem; }
.lost { position: relative; }
.lost__sprig { width: 64px; height: auto; color: var(--sage); margin-bottom: 18px; transform: rotate(-24deg); }
.lost__sprig .sprig__berry { fill: var(--blush); }

/* ---- footer ---- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 80px) 0 32px; margin-top: 0; }
.footer a { color: var(--paper); text-decoration-color: rgba(233, 183, 164, .7); }
.footer__in { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.footer__mark { width: 34px; height: 56px; color: var(--sage); }
.footer__name { font: 400 2.2rem/1 var(--display); margin: 14px 0 8px; }
.footer__tag { color: rgba(243, 234, 216, .78); margin: 0; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.footer__h { font: italic 400 1.2rem/1 var(--display); color: var(--blush); margin-bottom: 12px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(243, 234, 216, .2); padding-top: 22px; margin: 8px 0 0; font-size: .9rem; color: rgba(243, 234, 216, .72); }

/* ---- phone ---- */
@media (max-width: 640px) {
  .masthead__in { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 12px; padding-bottom: 10px; min-height: 0; }
  .brand { align-self: center; }
  .nav { justify-content: center; gap: 22px; }
  .nav .nav__etsy { padding: 5px 12px; }
  .hero { padding-top: 28px; }
  .hero__title { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__plate { padding-bottom: 40px; }
  .label--hero { width: 62%; right: -6px; padding: 10px 12px 6px; }
  .label--hero .label__head { font-size: .82rem; margin-bottom: 4px; padding-bottom: 4px; }
  .label--hero .label__rows div { grid-template-columns: 3.4em 1fr; padding: 1px 0; }
  .label--hero .label__rows dt { font-size: .76rem; }
  .label--hero .label__rows dd { font-size: .9rem; }
  .label--sheet { display: none; }
  .section__head { display: block; }
  .section__note { margin-top: 10px; }
  .card__name { font-size: 1.2rem; }
  .card__price { font-size: .92rem; }
  .contents__n { font-size: 1rem; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .masthead, .footer, .product__buy, .sizes, .product__share { display: none; } body { background: #fff; } }
