/* SMARTea website. Colours from BRAND-PROFILE.md §5; font Alexandria (SIL Open Font Licence). */
@font-face { font-family: Alexandria; src: url(/assets/fonts/alexandria-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Alexandria; src: url(/assets/fonts/alexandria-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Alexandria; src: url(/assets/fonts/alexandria-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Alexandria; src: url(/assets/fonts/alexandria-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --cream: #F3F0E6; --paper: #FAF8F2; --sage: #9CAF88; --matcha: #7A8B5A;
  --forest: #2E3D2F; --text: #4A4A45; --head: #3B3B36; --line: #DDD8C8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 300 16px/1.65 Alexandria, Helvetica, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
h1, h2, h3 { color: var(--head); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-weight: 800; font-size: clamp(30px, 5vw, 46px); }
h2 { font-weight: 800; font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-weight: 600; font-size: 21px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--head); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Top bar, menu, logo */
.topbar { background: var(--forest); color: #fff; text-align: center; font-weight: 600; font-size: 14px; padding: 12px 16px; }
.topbar a { color: #fff; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 8px; }
.brand { order: 2; width: 100%; padding: 18px 0 10px; }
.brand img { width: min(560px, 78vw); }
nav.menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; }
nav.menu a { color: var(--head); font-weight: 600; text-decoration: none; font-size: 15px; padding: 6px 0; display: inline-block; }
nav.menu a[aria-current="page"], nav.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-block; background: var(--forest); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 28px; border: 0; border-radius: 2px; }
.btn:hover { background: #3c4f3d; }
.btn.quiet { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.tag { display: inline-block; background: var(--forest); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 22px; }

/* Sections */
main { display: block; }
.band { padding: 56px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split img.tall { aspect-ratio: 4 / 5; }
.split img.contain { object-fit: contain; aspect-ratio: auto; }
.center { text-align: center; }
.narrow { max-width: 720px; margin: 0 auto; }
.lead { font-size: 18px; }
.hero h1 { margin-bottom: .3em; }
.hero .sub { font-size: 18px; margin-bottom: 1.4em; }
.ticks { padding-left: 20px; }
.ticks li { margin: 2px 0; }
.script { margin: 0 auto 28px; width: min(452px, 80vw); }

/* Where it comes from */
.origins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.origins div { background: var(--forest); color: #fff; padding: 28px 20px; font-size: 15px; }
.origins div:nth-child(2), .origins div:nth-child(2) p { background: var(--sage); color: var(--forest); }
.origins h3 { color: inherit; font-size: 18px; }
.origins .names { font-weight: 600; margin: 0; }

/* Icons row */
.icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; list-style: none; padding: 0; margin: 0; }
.icons img { width: 72px; margin: 0 auto 10px; }
.icons li { font-weight: 600; font-size: 14px; color: var(--head); line-height: 1.35; }

/* Ingredient list */
.ingredients dt { font-weight: 600; color: var(--head); margin-top: 14px; }
.ingredients dd { margin: 0; }

/* Recipes */
.recipe h3 { text-align: center; }
.recipe h4 { font-weight: 600; color: var(--head); margin: 14px 0 4px; font-size: 16px; }
.recipe ul, .recipe ol { margin: 0; padding-left: 22px; }

/* Blog */
.posts { display: grid; gap: 28px; }
.post-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-card img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card div { padding: 32px; align-self: center; }
.post-card h2 { font-size: 26px; }
.post-card:hover h2 { text-decoration: underline; }
article.post { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 6vw, 64px); }
article.post h2 { font-size: 21px; font-weight: 600; margin-top: 1.4em; }
article.post figure { margin: 28px 0; }
.more-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.more-posts a { background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--head); font-weight: 600; }
.more-posts img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.more-posts span { display: block; padding: 14px 16px 18px; }
.back { font-size: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--head); font-size: 18px; }
.faq details p { margin: 10px 0 0; }

/* Legal pages */
.legal h2 { font-size: 22px; margin-top: 1.8em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { color: var(--head); font-weight: 600; }
.legal .summary { background: var(--paper); border-left: 4px solid var(--sage); padding: 4px 22px; }
.legal .updated { font-size: 14px; }

/* Footer */
.site-foot { background: var(--forest); color: #fff; margin-top: 64px; padding: 40px 0 28px; font-size: 14px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-foot li { margin: 0 0 6px; font-weight: 600; }
.site-foot .logo { width: min(320px, 70vw); margin-bottom: 18px; filter: brightness(0) invert(1); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.social a { border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 5px 14px; text-decoration: none; font-weight: 600; }
.social a:hover { background: rgba(255,255,255,.12); }
.legal-line { margin-top: 28px; opacity: .85; font-size: 13px; }

/* Phone */
@media (max-width: 760px) {
  .band { padding: 40px 0; }
  .split, .post-card, .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .split.flip > :first-child { order: 0; }
  .origins { grid-template-columns: 1fr; }
  .icons { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .icons li:last-child { grid-column: 1 / -1; }
  .more-posts { grid-template-columns: 1fr; }
  .post-card div { padding: 22px; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tr:first-child { display: none; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .legal td { border: 0; padding: 2px 0; }
  .legal td:first-child { font-weight: 600; color: var(--head); }
  .menu-btn { display: inline-block; order: 1; margin-left: auto; background: none; border: 1px solid var(--forest); color: var(--forest); font: 600 15px Alexandria, Arial, sans-serif; padding: 8px 14px; }
  nav.menu { order: 3; width: 100%; display: none; }
  nav.menu.open { display: block; }
  nav.menu ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  nav.menu li { border-bottom: 1px solid var(--line); }
  nav.menu a { display: block; padding: 12px 0; }
  .brand { order: 0; width: auto; padding: 4px 0; }
  .brand img { width: min(230px, 58vw); }
  .site-head .wrap { flex-wrap: wrap; }
}
