/* Whiskypedia — base stylesheet (no framework, no external requests) */
:root {
  --ink: #1f1a14;
  --ink-soft: #4a4137;
  --muted: #7a6e60;
  --paper: #fbf7f0;
  --card: #ffffff;
  --line: #e7dccb;
  --amber: #b4621b;
  --amber-dark: #8a4512;
  --amber-pale: #f6e8d3;
  --peat: #2f3b33;
  --radius: 10px;
  --max: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-dark); text-underline-offset: 2px; }
a:hover { color: var(--amber); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Domain-for-sale bar */
.sale-bar { background: var(--amber); color: #fff; font-size: .9rem; text-align: center; padding: 7px 0; }
.sale-bar a { color: #fff; font-weight: 700; white-space: nowrap; }
.sale-bar a:hover { color: var(--amber-pale); }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.brand .word { color: var(--ink); }
.brand .word span { color: var(--amber); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; padding: 6px 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--amber-dark); box-shadow: inset 0 -2px 0 var(--amber); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .site-nav a { padding: 8px 0; }
}

/* Hero */
.hero { background: var(--peat); color: #f4ede2; padding: 64px 0 56px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 640px; color: #e8dfd0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .98rem; }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-ghost { border: 1px solid #cdbfa8; color: #f4ede2; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.page-head { padding: 48px 0 8px; }
.page-head .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.banner { border-radius: var(--radius); overflow: hidden; margin: 8px 0 32px; background: var(--amber-pale); aspect-ratio: 21 / 8; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

section.block { padding: 40px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-img { margin: -22px -22px 18px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--amber-pale); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--amber); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.tags li { background: var(--amber-pale); color: var(--amber-dark); font-size: .82rem; padding: 2px 10px; border-radius: 999px; margin: 0; }
.tags li a { color: inherit; font-weight: 600; }

.note { background: var(--amber-pale); border-left: 4px solid var(--amber); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 0 0 1.4em; }
.note p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 1em; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }

table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .96rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--serif); background: var(--amber-pale); }
.table-scroll { overflow-x: auto; margin-bottom: 1.4em; }

dl.glossary dt { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-top: 1em; }
dl.glossary dd { margin: .2em 0 0; color: var(--ink-soft); }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.5em; }
.az a { padding: 2px 9px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--card); }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 2em; }
.toc strong { font-family: var(--serif); }
.toc ul { margin: 8px 0 0; padding-left: 20px; }

.related { margin-top: 48px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc4b3; padding: 40px 0 28px; margin-top: 56px; font-size: .94rem; }
.site-footer a { color: #f0e6d6; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .fine { border-top: 1px solid #3c342a; margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #a99d8b; }

/* Contact form */
.contact-form { display: grid; gap: 16px; margin-bottom: 1em; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); }
