:root {
  --ink: #251f1b;
  --muted: #74675e;
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --line: #ded2c2;
  --sage: #5e7561;
  --blue: #345c70;
  --wine: #8e3f46;
  --gold: #b88746;
  --shadow: 0 20px 60px rgba(54, 39, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(37, 31, 27, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 31, 27, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: Georgia, "Times New Roman", serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(37, 31, 27, 0.12);
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fffdf8;
  border-radius: 50%;
  background: var(--wine);
  font-size: 0.86rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  min-height: calc(100svh - 112px);
  padding: clamp(56px, 9vw, 112px) 0 44px;
}

.hero-copy {
  position: relative;
  min-height: 460px;
  padding: clamp(28px, 6vw, 64px) 0;
}

.hero-copy::before {
  position: absolute;
  inset: 0 auto auto min(44vw, 480px);
  width: min(34vw, 320px);
  min-width: 190px;
  aspect-ratio: 2 / 3;
  content: "";
  transform: rotate(4deg);
  border: 1px solid rgba(37, 31, 27, 0.16);
  border-radius: 3px 12px 12px 3px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 14%),
    linear-gradient(135deg, rgba(37, 31, 27, 0.1), transparent 42%),
    linear-gradient(145deg, #8e3f46, #345c70 58%, #b88746);
  box-shadow: var(--shadow);
}

.hero-copy::after {
  position: absolute;
  inset: 72px auto auto min(52vw, 600px);
  width: min(24vw, 210px);
  min-width: 140px;
  aspect-ratio: 2 / 3;
  content: "";
  transform: rotate(-9deg);
  border: 1px solid rgba(37, 31, 27, 0.12);
  border-radius: 3px 12px 12px 3px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 16%),
    linear-gradient(160deg, #5e7561, #f3e7d3);
  box-shadow: 0 18px 50px rgba(54, 39, 28, 0.1);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 13vw, 9.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.about p,
.spotlight p,
.now-reading p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.now-reading {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.now-reading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.status-dot {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 7px rgba(94, 117, 97, 0.14);
}

.progress {
  overflow: hidden;
  height: 8px;
  margin: 24px 0 12px;
  border-radius: 999px;
  background: #e7ddcf;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

.small {
  margin-bottom: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem !important;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: clamp(64px, 9vw, 110px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.intro-band div {
  min-height: 124px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.72);
}

.intro-band strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.intro-band span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.reviews-section,
.spotlight,
.visitor-section,
.about {
  margin-bottom: clamp(64px, 9vw, 112px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.controls {
  display: flex;
  gap: 10px;
  width: min(100%, 540px);
}

.search-box {
  flex: 1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
}

input,
textarea {
  padding: 0 14px;
}

textarea {
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.5;
}

select {
  max-width: 190px;
  padding: 0 34px 0 12px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  height: 565px;
  border: 1px solid rgba(37, 31, 27, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(54, 39, 28, 0.08);
}

.cover {
  position: relative;
  display: grid;
  height: 250px;
  min-height: 250px;
  padding: 22px;
  place-items: end start;
  color: #fffdf8;
  isolation: isolate;
}

.cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.22), transparent 52%),
    var(--cover-bg);
}

.cover.cover-image::before {
  background:
    var(--cover-image),
    linear-gradient(145deg, #f6eee2, #d8c7b3);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain, cover;
}

.cover.cover-image span {
  display: none;
}

.cover::after {
  position: absolute;
  inset: 16px 18px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 3px;
}

.cover span {
  display: -webkit-box;
  overflow: hidden;
  max-width: 92%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 0.98;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.26);
}

.review-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 22px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}

.review-content h3 {
  display: block;
  overflow: hidden;
  max-height: calc(1.12em * 2 + 0.2em);
  line-height: 1.12;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(37, 31, 27, 0.12);
  border-radius: 999px;
  background: #f6eee2;
}

.rating {
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.review-content p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.62;
  padding-bottom: 0.2em;
}

.review-button {
  align-self: start;
  min-height: 42px;
  margin-top: auto;
  padding: 0 16px;
  color: #fffdf8;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.review-button:hover {
  background: var(--wine);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.button-row .review-button {
  margin-top: 0;
}

.secondary-button,
.text-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.text-button {
  color: var(--wine);
  border: 0;
  background: transparent;
}

.review-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.68);
}

.visitor-section {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 14px 44px rgba(54, 39, 28, 0.08);
}

.visitor-section .section-heading > p {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.reader-form,
.admin-form {
  display: grid;
  gap: 18px;
}

.reader-form label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(28px, 6vw, 58px);
  border-radius: 8px;
  color: #fffdf8;
  background:
    linear-gradient(135deg, rgba(37, 31, 27, 0.96), rgba(52, 92, 112, 0.96)),
    var(--blue);
}

.spotlight .eyebrow,
.spotlight p {
  color: #f4dfc4;
}

.spotlight h2 {
  color: #fffdf8;
}

.spotlight-cover {
  display: grid;
  min-height: 330px;
  padding: 20px;
  place-items: end start;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 4px 12px 12px 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 18%),
    var(--spotlight-bg, linear-gradient(145deg, var(--wine), var(--gold)));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.spotlight-cover-image {
  place-items: end start;
  background:
    var(--spotlight-image),
    linear-gradient(145deg, #f6eee2, #d8c7b3);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain, cover;
}

.spotlight-cover-image span {
  display: none;
}

.spotlight-cover span {
  color: #fff8e8;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.about {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
}

.site-footer a {
  text-decoration: none;
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  padding: clamp(32px, 6vw, 70px) 0;
}

.admin-hero {
  max-width: 780px;
  margin-bottom: 32px;
}

.admin-hero h1 {
  font-size: clamp(3.3rem, 9vw, 7rem);
}

.admin-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.admin-alert {
  padding: 16px 18px;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.admin-alert.success {
  color: #274f31;
  border: 1px solid rgba(94, 117, 97, 0.35);
  background: rgba(94, 117, 97, 0.12);
}

.admin-alert.error {
  color: var(--wine);
  border: 1px solid rgba(142, 63, 70, 0.35);
  background: rgba(142, 63, 70, 0.1);
}

.admin-panel,
.admin-stats {
  margin-bottom: 24px;
}

.admin-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 14px 44px rgba(54, 39, 28, 0.08);
}

.admin-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.admin-panel p {
  color: var(--muted);
  line-height: 1.62;
}

.narrow-panel {
  max-width: 520px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.admin-stats div {
  padding: 22px;
  background: rgba(255, 253, 248, 0.82);
}

.admin-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
}

.checkbox-row input {
  width: auto;
  min-height: 0;
}

.rich-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.rich-editor-field {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f6eee2;
}

.rich-toolbar button {
  display: inline-grid;
  min-width: 38px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(37, 31, 27, 0.14);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.rich-toolbar button:hover {
  border-color: var(--wine);
}

.swatch {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(37, 31, 27, 0.18);
}

.swatch.text-wine {
  background: var(--wine);
}

.swatch.text-blue {
  background: var(--blue);
}

.swatch.text-sage {
  background: var(--sage);
}

.swatch.mark-yellow {
  background: #ffe8a8;
}

.swatch.mark-blue {
  background: #d8edf4;
}

.rich-editor-surface {
  min-height: 320px;
  padding: 16px;
  color: var(--ink);
  outline: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.rich-editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(142, 63, 70, 0.2);
}

.rich-editor-surface p,
.rich-editor-surface div,
.rich-editor-surface blockquote,
.rich-editor-surface ul,
.rich-editor-surface ol {
  margin: 0 0 1rem;
}

.rich-editor-surface h3,
.rich-editor-surface h4 {
  margin: 1.4rem 0 0.65rem;
}

.rich-editor-surface blockquote {
  padding-left: 18px;
  color: var(--blue);
  border-left: 4px solid var(--gold);
}

.rich-editor-input {
  display: none;
}

.moderation-list {
  display: grid;
  gap: 14px;
}

.edit-review-list {
  display: grid;
  gap: 12px;
}

.edit-review-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.edit-review-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.edit-review-item summary small {
  color: var(--muted);
  font-weight: 400;
}

.edit-review-item .admin-form {
  padding: 0 18px 18px;
}

.moderation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.moderation-item h3 {
  font-size: 1.35rem;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

dialog {
  width: min(720px, calc(100% - 28px));
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 100px rgba(37, 31, 27, 0.35);
}

dialog::backdrop {
  background: rgba(37, 31, 27, 0.45);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.dialog-body {
  padding: 28px;
}

.dialog-body h2 {
  max-width: calc(100% - 42px);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.dialog-body blockquote {
  margin: 22px 0;
  padding-left: 18px;
  color: var(--blue);
  border-left: 4px solid var(--gold);
  font-size: 1.25rem;
  line-height: 1.55;
}

.rich-text {
  color: var(--muted);
  line-height: 1.7;
}

.rich-text p,
.rich-text div,
.rich-text blockquote,
.rich-text ul,
.rich-text ol {
  margin: 0 0 1rem;
}

.rich-text h3,
.rich-text h4 {
  margin: 1.4rem 0 0.65rem;
  color: var(--ink);
}

.rich-text blockquote {
  padding-left: 18px;
  color: var(--blue);
  border-left: 4px solid var(--gold);
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.4rem;
}

.text-wine {
  color: var(--wine);
}

.text-blue {
  color: var(--blue);
}

.text-sage {
  color: var(--sage);
}

.text-gold {
  color: var(--gold);
}

.mark-yellow {
  background: #ffe8a8;
}

.mark-blue {
  background: #d8edf4;
}

.mark-green {
  background: #dcead7;
}

.opinion-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.opinion-list h3 {
  margin-bottom: 4px;
}

.reader-opinion {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
}

.reader-opinion p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-opinion-button {
  margin-top: 18px;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .hero,
  .section-heading,
  .spotlight,
  .about {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .admin-stats,
  .moderation-item {
    grid-template-columns: 1fr;
  }

  .moderation-actions {
    justify-content: start;
  }

  .hero-copy {
    min-height: 390px;
  }

  .hero-copy::before {
    left: auto;
    right: 4vw;
  }

  .hero-copy::after {
    left: auto;
    right: 24vw;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-copy {
    min-height: 320px;
  }

  .hero-copy::before {
    width: 178px;
    min-width: 0;
    opacity: 0.88;
  }

  .hero-copy::after {
    top: 80px;
    right: 104px;
    width: 126px;
    min-width: 0;
  }

  h1 {
    max-width: 360px;
    font-size: clamp(3.55rem, 18vw, 5.4rem);
  }

  .intro-band,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
  }

  select {
    max-width: none;
  }

  .review-card {
    min-height: auto;
  }

  .cover {
    min-height: 220px;
  }

  .site-footer {
    flex-direction: column;
  }
}
