:root {
  --paper: #f3f4f1;
  --ink: #22281f;
  --green: #1f3d2b;
  --roast: #6b4428;
  --mustard: #c9a227;
  --muted: #5c6358;
  --line: #d9dcd4;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}
*, *::before, *::after { 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: 16px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* header */
.site-header { background: var(--green); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .08em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.nav a { color: #fff; text-decoration: none; font-size: .95rem; display: inline-block; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--mustard); }
.nav a:hover { padding: 6px 18px; border: 2px solid var(--mustard); letter-spacing: .2em; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 96px 88px; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--mustard); opacity: .85; right: 6%; top: 40px; }
.hero .wrap { position: relative; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.35; margin: 0 0 24px; max-width: 13em; letter-spacing: .04em; }
.hero p { max-width: 32em; margin: 0 0 36px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 2px; text-decoration: none; font-weight: 700; border: 2px solid var(--green); }
.btn-primary { background: var(--green); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--green); }

section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.5; margin: 0 0 28px; }
.lead { max-width: 36em; color: var(--muted); }
.page-title { padding-block: 64px 24px; }
.page-title h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); margin: 0; }

/* top */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.figure-caption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.products > * { min-width: 0; }
.product { background: #fff; border: 1px solid var(--line); padding: 20px; }
.product img { aspect-ratio: 4 / 3; width: 100%; height: auto; background: #e7e9e3; }
.product-name { font-family: var(--serif); font-size: 1.2rem; margin: 16px 0 4px; height: 2.4em; line-height: 1.2; overflow: visible; }
.product-price { font-weight: 700; margin: 8px 0 0; }
.product-note { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.shipping { margin-top: 40px; color: #c8cbc4; font-size: .95rem; }

/* about */
.quote { padding-block: 160px; text-align: center; }
.quote p { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0; }
.roastery-img { width: 100%; height: 180px; }
.history { width: 100%; min-width: 760px; border-collapse: collapse; }
.history th, .history td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.history th { width: 9em; font-weight: 700; color: var(--roast); }

/* news */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: #e4e6e0; padding-block: 40px; font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #e4e6e0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { padding-block: 64px 56px; }
  .hero::before { width: 170px; height: 170px; right: -50px; top: 20px; }
  .actions { flex-direction: column; align-items: flex-start; }
  .actions .btn-secondary { position: relative; top: -34px; left: 40px; }
  .split { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .product-name { font-size: 1.35rem; }
  .news-list li { grid-template-columns: 1fr; gap: 0; }
  .quote { padding-block: 112px; }
}
