/* Ideas & Finds. Layout: left-aligned, one reading column; kraft gift tags are the only ornament. */
@font-face {
  font-family: "Bonum";
  src: url("fonts/texgyrebonum-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F4F7F3;
  --card: #FFFFFF;
  --ink: #16332C;
  --ink-soft: #4A625C;
  --line: #CBD8D1;
  --ribbon: #B81F55;
  --marigold: #F0B429;
  --kraft: #DDBF93;
  --kraft-deep: #8A6A3B;
  --mint: #D5EBE1;
  --display: "Bonum", "Bookman Old Style", "Bookman", "URW Bookman", Georgia, serif;
  --body: "Seravek", "Gill Sans Nova", "Ubuntu", "Calibri", "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.89rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 1.3rem + 3vw, 3.1rem);
  --wrap: 68rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--ribbon); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ribbon); }
:focus-visible { outline: 3px solid var(--ribbon); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem .75rem; z-index: 5; }

/* Header */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.45rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 1.9rem; height: 1.9rem; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.3rem; list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }
.nav a { text-decoration: none; padding-block: .2rem; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--kraft); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ribbon); }

/* The gift tag: used for category labels and list headings */
.tag {
  display: inline-block;
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--step--1);
  line-height: 1.2;
  letter-spacing: 0;
  padding: .42em .9em .42em 1.9em;
  text-decoration: none;
  clip-path: polygon(.75em 0, 100% 0, 100% 100%, .75em 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 1.05em 50%, transparent .22em, #000 .26em);
  mask: radial-gradient(circle at 1.05em 50%, transparent .22em, #000 .26em);
}
a.tag:hover { background: var(--marigold); color: var(--ink); }
.tag-lg { font-family: var(--display); font-size: var(--step-1); padding: .45em 1.1em .45em 2em; }

/* Home hero */
.hero { padding-block: 2.6rem 2.2rem; display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.hero > * { min-width: 0; }
.hero p { margin-top: 1.1rem; max-width: 32rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.hero .card h3 { font-size: var(--step-2); }

.section { padding-block: 2.2rem; border-top: 2px solid var(--ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.6rem; }
.section-head p { color: var(--ink-soft); max-width: var(--measure); flex-basis: 100%; }
.more { font-weight: 700; white-space: nowrap; }

/* Article cards */
.cards { display: grid; gap: 2.2rem 1.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-art { position: relative; display: block; }
.card-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.card-art .tag { position: absolute; left: -0.45rem; bottom: -0.7rem; }
.card h3 { margin-top: 1.35rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--ribbon); }
.card p { margin-top: .5rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }

/* Article page */
.article { padding-block: 2.2rem 3rem; }
.article-head { max-width: 46rem; }
.article-head h1 { margin-top: 1rem; }
.dek { margin-top: 1rem; font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); }
.meta { margin-top: .9rem; font-size: var(--step--1); color: var(--ink-soft); }
.article-art { margin-block: 1.8rem 2rem; max-width: 46rem; }
.article-art img { width: 100%; border-radius: 3px; }
.article-body { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 21rem); gap: 2.4rem 4rem; align-items: start; }
.article-body > * { min-width: 0; }
.side { position: sticky; top: 1.5rem; display: grid; gap: 1.8rem; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { margin-top: 2.3rem; }
.prose h2 + * { margin-top: .8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 0; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--ribbon); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 1.1rem 1.3rem; background: var(--card); border-left: 6px solid var(--marigold); }
.prose blockquote strong { background: var(--mint); padding: 0 .2em; }

/* Shopping list: a notepad page */
.shoplist { max-width: var(--measure); }
.shoplist .pad { margin-top: -0.2rem; background: var(--card); border: 1px solid var(--line); border-left: 4px double var(--ribbon); padding: 1.2rem 1.2rem .6rem 1.3rem; }
.shoplist .note { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; padding-bottom: .8rem; }
.shoplist ul { list-style: none; margin: 0; padding: 0; }
.shoplist li { border-top: 1px solid var(--line); }
.shoplist label { display: flex; gap: .8rem; align-items: flex-start; padding: .62rem 0; cursor: pointer; }
.shoplist input { width: 1.25rem; height: 1.25rem; margin: .22rem 0 0; accent-color: var(--ribbon); flex: none; }
.shoplist input:checked + span { text-decoration: line-through; color: var(--ink-soft); }

/* Own-shop callout */
.shopnote { max-width: var(--measure); background: var(--kraft); padding: 1.3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; border-radius: 3px; }
.shopnote img { order: -1; }
.shopnote > * { min-width: 0; }
.shopnote h2 { font-size: var(--step-1); }
.shopnote p { margin-top: .5rem; font-size: 1.02rem; line-height: 1.5; }
.shopnote img { border-radius: 3px; width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1rem; text-decoration: none; padding: .5rem .95rem; border-radius: 3px; }
.btn:hover { background: var(--ribbon); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.alt:hover { background: var(--ink); color: var(--paper); }

/* Product grid */
.products { display: grid; gap: 2rem 1.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.product { display: flex; flex-direction: column; min-width: 0; }
.product img { width: 100%; border-radius: 3px; }
.product h3 { margin-top: .9rem; }
.product p { margin-top: .4rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; flex: 1; }

/* Plain pages */
.page { padding-block: 2.4rem 3rem; }
.page .prose h1 { margin-bottom: 1.2rem; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: var(--measure); margin-top: 1rem; }
.address { font-weight: 700; user-select: all; }
.todo { background: var(--marigold); padding: .6rem .8rem; font-weight: 700; }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); margin-top: 1rem; font-size: 1rem; }
.site-foot .wrap { padding-block: 1.6rem 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; justify-content: space-between; }
.site-foot p { max-width: 30rem; color: var(--ink-soft); line-height: 1.5; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 62rem) {
  .article-body { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-width: var(--measure); }
}
@media (max-width: 46rem) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 1.8rem; }
  .card-art .tag { left: 0; }
}
@media print {
  .site-head nav, .site-foot, .shopnote, .related { display: none; }
  body { background: #fff; }
}
