:root {
  --paper: #f6f3ec;
  --ink: #1f2a33;
  --muted: #5d6870;
  --rule: #d9d3c6;
  --accent: #2f4a5c;
  --wax: #c9a24a;
  --panel: #ece6d9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 18px; flex-wrap: wrap; }
.wordmark { font-family: var(--serif); font-size: 26px; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* content */
main { padding: 48px 0 64px; }
.page { max-width: 680px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: 44px; margin: 0 0 20px; }
h2 { font-size: 24px; margin: 40px 0 10px; }
p { margin: 0 0 16px; }
.lede { font-family: var(--serif); font-size: 21px; color: var(--muted); margin-bottom: 28px; }
.motto { font-family: var(--serif); font-size: 24px; margin: 40px 0 12px; }
.shelves a { display: inline-block; margin-right: 18px; font-size: 18px; }

/* FAQ */
details { border-top: 1px solid var(--rule); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-family: var(--serif); font-size: 20px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details p { margin: 10px 0 4px; }

/* collections and products */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; margin: 28px 0 0; }
.card .art { aspect-ratio: 1 / 1; background: var(--panel); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .art svg { width: 42%; height: auto; }
.card .name { font-size: 20px; margin: 0 0 6px; }
.card .name a { color: var(--ink); text-decoration: none; }
.card .name a:hover { text-decoration: underline; }
.card .summary { font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.card .price { font-size: 15px; margin: 0; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product .art { aspect-ratio: 1 / 1; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.product .art svg { width: 40%; height: auto; }
.product h1 { font-size: 36px; margin-bottom: 8px; }
.product .price { font-size: 20px; margin-bottom: 18px; }
.product ul { padding-left: 18px; margin: 0 0 18px; }
.product li { margin-bottom: 6px; }
.tag { display: inline-block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--ink); padding: 2px 8px; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 15px; }

button[disabled] { font: inherit; font-size: 15px; padding: 10px 18px; border: 1px solid var(--rule); background: transparent; color: var(--muted); cursor: not-allowed; }
.buy button { width: 100%; }
.disabled-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

.fields { display: grid; gap: 14px; max-width: 420px; margin-bottom: 18px; }
.fields label { display: grid; gap: 4px; font-size: 15px; }
.fields input { font: inherit; padding: 9px 10px; border: 1px solid var(--rule); background: #fbfaf6; color: var(--muted); }
.choice { display: flex; gap: 10px; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.notice { margin: 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { row-gap: 10px; padding-top: 18px; padding-bottom: 14px; }
  .site-nav { gap: 14px; font-size: 14px; }
  main { padding: 32px 0 48px; }
  h1 { font-size: 34px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .product { grid-template-columns: 1fr; gap: 24px; }
}
