/* Oak Wood Wine Barrels review archive.
   Palette and display face are inherited from obarrel.com so the archive reads
   as the same company's record, not a lookalike. */

:root {
  /* Ground is white because obarrel.com is white. Oak is reserved for the
     masthead, the disclosure band and rules, so brown reads as structure
     rather than as an ambient "premium" wash. */
  --oak: #3d2c1c;
  --oak-deep: #2a1e14;
  --ink: #262320;
  --ink-soft: #55504a;
  /* Recessive but still readable: 4.8:1 on white. Border tokens are lighter
     than this and must never be used for text. */
  --ink-faint: #79706a;
  --paper: #ffffff;
  --paper-sunk: #f6f2ec;
  --line: #e5ded4;
  --line-strong: #c6b8a6;
  --accent: #8a5a2b;
  --star: #b4762c;
  --verified: #2f6b4f;

  --measure: 68ch;
  --page: 1080px;

  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;     --s7: 3rem;    --s8: 4.5rem;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::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: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--oak); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--oak); color: #fff; padding: var(--s3) var(--s4); z-index: 10;
}
.skip:focus { left: var(--s4); top: var(--s4); }

/* ---------- masthead ---------- */

/* White, like obarrel.com's own header. The brand logo is black artwork on a
   transparent background, so it is unreadable on any dark ground: putting the
   masthead on white is both the fix and the more faithful match. */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }

.masthead__bar {
  display: flex; align-items: center; gap: var(--s5);
  padding-block: var(--s3); flex-wrap: wrap;
}

.masthead__id { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: inherit; min-width: 0; }
.masthead__id img { height: 46px; width: auto; }
.masthead__name {
  font-family: var(--serif); font-size: 1rem; line-height: 1.2; color: var(--ink-soft);
  padding-left: var(--s3); border-left: 1px solid var(--line);
}

.masthead nav { margin-left: auto; display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; }
.masthead nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9rem;
  /* Keeps the tap area at 44px without visually inflating the link. */
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s2);
}
.masthead nav a:hover, .masthead nav a[aria-current='page'] { color: var(--oak); text-decoration: underline; }
.masthead nav a:last-child { color: var(--accent); font-weight: 600; }

.foot li a { display: inline-block; padding-block: var(--s2); }

/* The disclosure strip is deliberately part of the masthead, not the footer:
   a visitor assessing credibility must see who runs this before the reviews. */
.disclose {
  background: var(--oak-deep);
  color: #d8c9b4;
  font-size: 0.83rem;
  padding-block: var(--s3);
}
.disclose strong { color: #fff; font-weight: 600; }
.disclose a { color: #f0c98a; }

/* ---------- record header ---------- */

.record {
  border-bottom: 1px solid var(--line);
  padding-block: var(--s7) var(--s6);
}

.record__title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); max-width: 20ch; }
.record__lede { max-width: var(--measure); color: var(--ink-soft); margin-top: var(--s4); font-size: 1.05rem; }

/* Framed by rules top and bottom rather than boxed: a filing header, not a card. */
.ledger {
  margin-top: var(--s6);
  border-top: 2px solid var(--oak);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s5);
  padding-block: var(--s5);
  align-items: center;
}
.ledger__avatar { width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; }
.ledger__shop { font-family: var(--serif); font-size: 1.25rem; }
.ledger__score { display: flex; align-items: baseline; gap: var(--s3); margin-top: var(--s1); flex-wrap: wrap; }
.ledger__num { font-family: var(--serif); font-size: 2.1rem; line-height: 1; }
.ledger__of { color: var(--ink-soft); font-size: 0.95rem; }
.ledger__meta { margin-top: var(--s3); font-size: 0.85rem; color: var(--ink-soft); }
.ledger__meta a { color: var(--accent); }

/* Colophon: the filing line under the headline. Small caps, rules, tabular
   figures. This is the page's signature detail, and it does real work: it
   states provenance in one glance before any review is read. */
.colophon {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  margin-top: var(--s5); padding-block: var(--s3);
  border-block: 1px solid var(--line);
  font-size: 0.73rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-soft);
}
.colophon b {
  color: var(--ink); font-weight: 600; letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .ledger { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- honesty note ---------- */

.note {
  border-left: 3px solid var(--line-strong);
  padding: var(--s3) 0 var(--s3) var(--s4);
  margin-block: var(--s6);
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.note b { color: var(--ink); font-weight: 600; }

/* ---------- distribution ---------- */

.dist { margin-block: var(--s6); max-width: 420px; }
.dist__row { display: grid; grid-template-columns: 3.4rem 1fr 3rem; align-items: center; gap: var(--s3); margin-bottom: var(--s2); font-size: 0.85rem; }
.dist__bar { background: var(--paper-sunk); height: 9px; border: 1px solid var(--line); }
.dist__fill { background: var(--star); height: 100%; }
.dist__n { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- reviews as a ledger list, not cards ---------- */

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap;
  border-bottom: 2px solid var(--oak);
  padding-bottom: var(--s3); margin-top: var(--s8); margin-bottom: var(--s2);
}
.section-head h2 { font-size: 1.5rem; }
.section-head span { font-size: 0.85rem; color: var(--ink-soft); }

.entries { list-style: none; margin: 0; padding: 0; }

/* Single column at every width. The review text is the content; giving it the
   full measure reads better on a phone than a thumbnail column would, and it
   keeps mobile and desktop on one layout instead of two. */
.entry {
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
}

.entry__head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.entry__author { font-weight: 600; }
.entry__date { color: var(--ink-soft); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* Descending index number. An archive is countable, and showing the count on
   each row is what separates a record from a testimonial wall. */
.entry__no {
  margin-left: auto; align-self: flex-start;
  font-size: 0.78rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}

.entry__text { margin: var(--s3) 0 0; font-size: 1.05rem; max-width: var(--measure); }
.entry__text--empty { color: var(--ink-soft); font-style: italic; font-size: 0.95rem; }

/* The one route from a review to the storefront. Sized as a full-width target
   because on a phone this is the conversion, not a footnote. */
.buyrow {
  display: flex; align-items: center; gap: var(--s3);
  margin-top: var(--s4);
  padding: var(--s2) var(--s3) var(--s2) var(--s2);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  min-height: 60px;
  max-width: var(--measure);
  background: #fff;
  transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.buyrow:hover { border-color: var(--accent); background: var(--paper-sunk); }
.buyrow:active { transform: scale(0.995); }

.buyrow__thumb {
  width: 56px; height: 56px; flex: 0 0 56px;
  object-fit: cover; background: var(--paper-sunk); border-radius: 2px;
}
.buyrow__thumb--none { display: block; }

.buyrow__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.buyrow__name {
  color: var(--ink); font-size: 0.9rem; line-height: 1.35;
  /* Two lines maximum: Etsy titles are long enough to swamp a phone screen. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.buyrow__cta { color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.buyrow:hover .buyrow__cta { text-decoration: underline; }

.buy { color: var(--accent); font-weight: 600; }

/* The shop's public response, indented under the review it answers so it can
   never be mistaken for the customer's own words. */
.reply {
  margin: var(--s4) 0 0;
  padding: var(--s3) var(--s4);
  background: var(--paper-sunk);
  border-left: 3px solid var(--line-strong);
  max-width: var(--measure);
}
.reply__who {
  display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: var(--s1);
}
.reply p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.h-sub { font-size: 1.15rem; margin-top: var(--s7); }

.mentions { margin: var(--s3) 0 0; padding-left: 1.1rem; max-width: var(--measure); color: var(--ink-soft); }
.mentions li { margin-bottom: var(--s2); }

.more { margin-top: var(--s5); font-size: 0.95rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--verified); border: 1px solid currentColor; border-radius: 2px;
  padding: 0.1em 0.45em; white-space: nowrap;
}

.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.stars--dim svg { fill: var(--line-strong); }

/* ---------- product index ---------- */

.products { list-style: none; padding: 0; margin: var(--s5) 0 0; border-top: 1px solid var(--line); }
.products li { border-bottom: 1px solid var(--line); }
.products a {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--s4);
  align-items: center; padding: var(--s4) 0; text-decoration: none; color: var(--ink);
}
.products a:hover { background: var(--paper-sunk); }
.products__n { color: var(--ink-soft); font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- pagination ---------- */

.pager { display: flex; gap: var(--s2); flex-wrap: wrap; margin-block: var(--s6); align-items: center; }
.pager a, .pager span {
  /* 44px at every width: tablets are touch devices too, so this is not a
     phone-only concern. */
  min-width: 44px; min-height: 44px;
  display: inline-grid; place-items: center;
  padding: 0 var(--s3);
  border: 1px solid var(--line-strong); text-decoration: none; font-size: 0.9rem;
}
.pager a { color: var(--ink); background: #fff; }
.pager a:hover { border-color: var(--oak); }
.pager [aria-current='page'] { background: var(--oak); color: #fff; border-color: var(--oak); }

/* ---------- prose ---------- */

.prose { max-width: var(--measure); padding-block: var(--s7); }
.prose h2 { font-size: 1.4rem; margin-top: var(--s7); }
.prose h2:first-of-type { margin-top: var(--s6); }
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin-bottom: var(--s2); }

/* ---------- store call to action ---------- */

.store {
  margin-block: var(--s8);
  background: var(--oak);
  color: #f3ece3;
  padding: var(--s7) var(--s6);
  display: grid; gap: var(--s4); justify-items: start;
}
.store h2 { color: #fff; font-size: 1.6rem; max-width: 22ch; }
.store p { margin: 0; max-width: 56ch; color: #ddd0bd; }
.store__cta {
  display: inline-block; background: #f3ece3; color: var(--oak-deep);
  padding: var(--s3) var(--s5); text-decoration: none; font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.store__cta:hover { background: #fff; color: var(--oak-deep); }
.store__cta:active { transform: scale(0.98); }

/* ---------- footer ---------- */

.foot { background: var(--oak-deep); color: #bfae97; font-size: 0.85rem; padding-block: var(--s7); margin-top: var(--s8); }
.foot a { color: #e8d5ba; }
/* Two real columns of real links. The legal note below is the point of this
   footer, so it gets the width rather than a third column of filler. */
.foot__grid { display: flex; flex-wrap: wrap; gap: var(--s6) var(--s8); }
.foot h3 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: #9d9080; margin-bottom: var(--s3); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: var(--s2); }
.foot__legal { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid #3b2c1e; color: #9d9080; max-width: var(--measure); }

/* ---------- mobile ----------
   Most traffic arrives on a phone, so these are corrections to the primary
   experience rather than an afterthought. Standalone links get a 44px target;
   inline links inside sentences are deliberately left alone, since padding
   them out breaks the line rhythm and WCAG 2.5.8 exempts them. */

.section-head span a,
.more a,
.foot li a,
.ledger__meta a {
  display: inline-flex; align-items: center; min-height: 44px;
}

@media (max-width: 720px) {
  :root { --s7: 2.25rem; --s8: 3rem; }

  .wrap { width: min(100% - 2rem, var(--page)); }

  /* Logo and wordmark on one line, nav on the next, both fully tappable. */
  .masthead__bar { gap: var(--s2) var(--s4); padding-block: var(--s2); }
  .masthead__id img { height: 40px; }
  .masthead nav { margin-left: 0; width: 100%; gap: 0 var(--s3); border-top: 1px solid var(--line); }
  .masthead nav a { font-size: 0.875rem; padding-inline: 0; margin-right: var(--s3); }

  .disclose { font-size: 0.8rem; line-height: 1.5; }

  .record { padding-block: var(--s6) var(--s5); }
  .colophon { font-size: 0.7rem; gap: var(--s2) var(--s4); letter-spacing: 0.06em; }
  .record__lede { font-size: 1rem; }

  .ledger { gap: var(--s4); padding-block: var(--s4); }
  .ledger__avatar { width: 54px; height: 54px; }
  .ledger__num { font-size: 1.75rem; }

  /* Rating bars stay legible when the row has ~340px to work with. */
  .dist__row { grid-template-columns: 3.1rem 1fr 2.2rem; font-size: 0.8rem; }

  .entry { padding-block: var(--s4); }
  .entry__head { gap: var(--s2) var(--s3); }
  .entry__no { font-size: 0.72rem; }
  .entry__text { font-size: 1rem; }
  .reply { padding: var(--s2) var(--s3); }
  .buyrow { min-height: 64px; }

  .products a { grid-template-columns: 1fr auto; gap: 0 var(--s3); padding: var(--s3) 0; }
  .products__n { grid-column: 2; }

  .store { padding: var(--s6) var(--s5); }
  .store h2 { font-size: 1.35rem; }
  .store__cta { width: 100%; text-align: center; min-height: 52px; display: grid; place-items: center; }

  .pager { gap: var(--s1); }
  .pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 var(--s2); }

  .foot__grid { gap: var(--s5) var(--s6); }
  .prose { padding-block: var(--s6); }
}

@media (max-width: 380px) {
  /* Smallest common Android width: shed the wordmark so the logo keeps size. */
  .masthead__name { display: none; }
  .badge { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
