
:root {
  --primary: #2d2118;
  --accent: #d66f3f;
  --secondary: #5f90a7;
  --bg: #f7f0e6;
  --text: #211a15;
  --muted: rgba(33, 26, 21, 0.64);
  --line: rgba(45, 33, 24, 0.16);
  --paper: #fffaf2;
  --cream: #fbf5eb;
  --foam: #e7f1ed;
  --copper: #bd6134;
  --blue: #4e7f94;
  --shadow: 0 18px 44px rgba(45, 33, 24, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(95, 144, 167, 0.08), transparent 22%, transparent 78%, rgba(214, 111, 63, 0.08)),
    var(--bg);
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

.coffee-header,
main,
.coffee-footer {
  width: min(100% - 48px, 1480px);
  margin-inline: auto;
}

.coffee-header {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}

.coffee-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.coffee-brand-mark {
  width: 58px;
  height: 58px;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fffaf2 0%, #ead8bf 100%);
  border: 2px solid var(--primary);
  border-radius: 20px;
  box-shadow: 7px 7px 0 rgba(43, 31, 22, 0.16);
}

.coffee-brand-mark svg {
  width: 48px;
  height: 48px;
  overflow: visible;
}

.coffee-logo-cup {
  fill: var(--primary);
}

.coffee-logo-drop {
  fill: var(--secondary);
}

.coffee-logo-handle,
.coffee-logo-steam,
.coffee-logo-saucer {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coffee-logo-handle,
.coffee-logo-saucer {
  stroke: var(--primary);
  stroke-width: 4;
}

.coffee-logo-steam {
  stroke: var(--accent);
  stroke-width: 3.5;
}

.coffee-brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.coffee-brand small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  margin-top: 3px;
}

.coffee-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.coffee-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.7);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

main {
  padding: 34px 0 72px;
}

.coffee-front {
  display: grid;
  grid-template-columns: minmax(310px, 0.92fr) minmax(300px, 0.78fr) minmax(340px, 0.88fr);
  gap: 22px;
  align-items: stretch;
}

.coffee-front-copy,
.coffee-front-feature,
.coffee-front-menu,
.coffee-category-hero,
.coffee-article-hero,
.coffee-policy {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.coffee-front-copy {
  display: flex;
  min-height: 640px;
  flex-direction: column;
  justify-content: center;
  padding: 58px;
  border-radius: 24px 7px 7px 24px;
}

.coffee-kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 0.98;
  letter-spacing: 0;
}

h1,
.coffee-section-head h2,
.coffee-board-copy h2,
.coffee-policy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.coffee-front-copy h1 {
  max-width: 650px;
  font-size: 76px;
}

.coffee-front-copy p:not(.coffee-kicker) {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.55;
}

.coffee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #fffaf2;
}

.button.secondary {
  background: transparent;
}

.coffee-front-feature {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-radius: 7px;
  background: #e5d6c3;
}

.coffee-front-feature .page-image,
.coffee-front-feature img {
  width: 100%;
  height: 100%;
}

.page-image {
  margin: 0;
}

.coffee-front-feature img {
  object-fit: cover;
}

.coffee-cover-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 242, 0.56);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(10px);
}

.coffee-cover-note span,
.coffee-cover-note strong {
  display: block;
}

.coffee-cover-note span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coffee-cover-note strong {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.08;
}

.coffee-front-menu {
  min-height: 640px;
  padding: 34px;
  border-radius: 7px 24px 24px 7px;
  background:
    linear-gradient(180deg, rgba(95, 144, 167, 0.14), transparent 42%),
    var(--paper);
}

.coffee-front-menu h2 {
  max-width: 360px;
  margin-bottom: 24px;
  font-size: 38px;
}

.coffee-menu-row,
.coffee-category-row,
.coffee-next-note {
  display: grid;
  grid-template-columns: 46px 70px 1fr;
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.coffee-menu-row:first-of-type,
.coffee-category-row:first-of-type,
.coffee-next-note:first-of-type {
  border-top: 0;
}

.coffee-row-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}

.coffee-row-label {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coffee-menu-row strong,
.coffee-category-row strong,
.coffee-next-note strong {
  font-size: 20px;
  line-height: 1.15;
}

.coffee-menu-row em,
.coffee-category-row em,
.coffee-next-note em {
  grid-column: 3;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
}

.coffee-counter-strip {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.78);
  overflow: hidden;
}

.coffee-counter-strip ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.coffee-counter-strip li {
  min-height: 112px;
  padding: 23px;
  border-left: 1px solid var(--line);
  color: var(--primary);
  font-weight: 850;
  line-height: 1.35;
}

.coffee-counter-strip li:first-child {
  border-left: 0;
}

.section {
  margin-top: 70px;
}

.coffee-section-head {
  max-width: 1040px;
  margin-bottom: 26px;
}

.coffee-bench-section .coffee-section-head {
  max-width: none;
}

.coffee-section-head h2 {
  max-width: 1040px;
  font-size: 52px;
}

.coffee-section-head h2.coffee-two-line-title {
  max-width: none;
  font-size: clamp(44px, 3vw, 52px);
  line-height: 1.03;
}

.coffee-two-line-title span {
  display: block;
  white-space: nowrap;
}

.coffee-bench-grid,
.coffee-shelf-grid {
  display: grid;
  gap: 20px;
}

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

.coffee-shelf-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coffee-card {
  display: flex;
  overflow: hidden;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(45, 33, 24, 0.08);
}

.coffee-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ded0bd;
}

.coffee-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coffee-card-copy {
  display: flex;
  min-height: 300px;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.coffee-card h3 {
  margin-top: 10px;
  font-size: 31px;
  line-height: 1.05;
}

.coffee-card p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.coffee-card .text-link {
  margin-top: auto;
  padding-top: 26px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.coffee-card.small .coffee-card-copy {
  min-height: 270px;
  padding: 22px;
}

.coffee-card.small h3 {
  font-size: 24px;
}

.coffee-card.small p {
  font-size: 16px;
}

.coffee-card.category-lead {
  height: 100%;
}

.coffee-card.category-lead h3 {
  font-size: 42px;
}

.coffee-card.category-lead .coffee-card-copy {
  min-height: 360px;
}

.coffee-department-board {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(620px, 1.28fr);
  gap: 26px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(95, 144, 167, 0.16), transparent 46%),
    linear-gradient(315deg, rgba(214, 111, 63, 0.14), transparent 42%),
    var(--paper);
  box-shadow: var(--shadow);
}

.coffee-board-copy {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.coffee-board-copy h2 {
  font-size: 56px;
}

.coffee-board-copy p:not(.coffee-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.coffee-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.coffee-ticket {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--text);
  text-decoration: none;
}

.coffee-ticket span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coffee-ticket strong {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.1;
}

.coffee-ticket em {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
}

.coffee-category-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(320px, 0.62fr);
  gap: 28px;
  padding: 46px;
  border-radius: 26px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.coffee-category-hero h1,
.coffee-article-hero h1 {
  max-width: 920px;
  font-size: 70px;
}

.coffee-category-hero p {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 23px;
}

.coffee-category-hero aside,
.coffee-article-hero aside {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--foam);
}

.coffee-category-hero aside span,
.coffee-article-hero aside span {
  color: var(--copper);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.coffee-category-hero aside strong {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.2;
}

.coffee-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.coffee-topic-row span {
  padding: 7px 10px;
  border: 1px solid rgba(45, 33, 24, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.68);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.coffee-category-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
  gap: 22px;
  align-items: stretch;
}

.coffee-category-index {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.coffee-category-index h2 {
  margin-bottom: 20px;
  font-size: 40px;
}

.coffee-category-row,
.coffee-next-note {
  grid-template-columns: 46px 76px 1fr;
}

.coffee-visual-shelf {
  padding-top: 8px;
}

.coffee-bottom-nav {
  margin-top: 64px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.72);
}

.coffee-bottom-nav div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coffee-bottom-nav a {
  display: block;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: #fffaf2;
}

.coffee-bottom-nav a span {
  display: block;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coffee-bottom-nav a strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.15;
}

.coffee-article-hero {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(330px, 0.42fr);
  gap: 26px;
  align-items: stretch;
  padding: 46px;
  border-radius: 26px 26px 10px 10px;
}

.coffee-article-hero p {
  max-width: 880px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 23px;
}

.byline {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.coffee-article-hero aside ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 750;
}

.coffee-article-image {
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0 0 26px 26px;
  box-shadow: var(--shadow);
}

.coffee-article-image .page-image {
  aspect-ratio: 21 / 8;
}

.coffee-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coffee-quickbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.coffee-quickbar div {
  min-height: 154px;
  padding: 24px;
  background: var(--paper);
}

.coffee-quickbar span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coffee-quickbar p {
  margin: 12px 0 0;
  color: var(--primary);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
}

.coffee-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: 28px;
  align-items: start;
  margin-top: 38px;
}

.coffee-copy {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.article-body h2 {
  margin: 44px 0 16px;
  font-size: 39px;
  line-height: 1.08;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  color: var(--text);
  font-size: 21px;
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  color: var(--text);
  font-size: 20px;
  line-height: 1.7;
}

.article-body a {
  color: var(--blue);
  font-weight: 800;
}

.coffee-disclaimer {
  padding: 22px;
  border-left: 5px solid var(--copper);
  border-radius: 16px;
  background: #f5e5d4;
}

.coffee-inline-image {
  overflow: hidden;
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.coffee-inline-image img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.coffee-reading-rail {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--foam);
  box-shadow: 0 10px 28px rgba(45, 33, 24, 0.08);
}

.coffee-reading-rail h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.coffee-next-note {
  grid-template-columns: 38px 58px 1fr;
  padding: 15px 0;
}

.coffee-next-note em {
  display: none;
}

.coffee-policy {
  width: min(100%, 1080px);
  margin: 20px auto 0;
  padding: 52px;
  border-radius: 28px;
}

.coffee-policy h1 {
  font-size: 68px;
}

.coffee-policy .coffee-copy {
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.coffee-footer {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) repeat(2, minmax(180px, 260px));
  gap: 34px;
  padding: 44px 0 60px;
  border-top: 1px solid var(--line);
}

.coffee-footer strong {
  display: block;
  font-size: 28px;
}

.coffee-footer p {
  margin: 12px 0 0;
  color: var(--muted);
}

.fine-print {
  font-size: 14px;
  line-height: 1.6;
}

.footer-group h2 {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-group a {
  display: block;
  padding: 6px 0;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.empty-note {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .coffee-front,
  .coffee-category-layout,
  .coffee-reading-layout {
    grid-template-columns: 1fr;
  }

  .coffee-front-copy,
  .coffee-front-feature,
  .coffee-front-menu {
    min-height: auto;
    border-radius: 22px;
  }

  .coffee-front-feature {
    min-height: 420px;
  }

  .coffee-section-head,
  .coffee-department-board,
  .coffee-category-hero,
  .coffee-article-hero {
    grid-template-columns: 1fr;
  }

  .coffee-reading-rail {
    position: static;
  }
}

@media (max-width: 900px) {
  .coffee-header {
    grid-template-columns: 1fr;
  }

  .coffee-nav {
    justify-content: flex-start;
  }

  .coffee-front-copy h1,
  .coffee-category-hero h1,
  .coffee-article-hero h1,
  .coffee-policy h1 {
    font-size: 54px;
  }

  .coffee-bench-grid,
  .coffee-shelf-grid,
  .coffee-ticket-grid,
  .coffee-bottom-nav div,
  .coffee-counter-strip ul,
  .coffee-quickbar {
    grid-template-columns: 1fr;
  }

  .coffee-counter-strip li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .coffee-counter-strip li:first-child {
    border-top: 0;
  }

  .coffee-card-copy {
    min-height: auto;
  }

  .coffee-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .coffee-header,
  main,
  .coffee-footer {
    width: min(100% - 28px, 760px);
  }

  .coffee-front-copy,
  .coffee-front-menu,
  .coffee-category-hero,
  .coffee-article-hero,
  .coffee-copy,
  .coffee-policy,
  .coffee-department-board {
    padding: 24px;
  }

  .coffee-front-copy h1,
  .coffee-category-hero h1,
  .coffee-article-hero h1,
  .coffee-policy h1 {
    font-size: 42px;
  }

  .coffee-section-head h2,
  .coffee-board-copy h2 {
    font-size: 36px;
  }

  .coffee-two-line-title span {
    display: inline;
    white-space: normal;
  }

  .coffee-two-line-title span + span::before {
    content: " ";
  }

  .coffee-menu-row,
  .coffee-category-row,
  .coffee-next-note {
    grid-template-columns: 38px 1fr;
  }

  .coffee-row-label {
    display: none;
  }

  .coffee-menu-row em,
  .coffee-category-row em,
  .coffee-next-note em {
    grid-column: 2;
  }
}
