:root {
  --navy: #11203a;
  --navy-2: #172949;
  --paper: #f4ead3;
  --paper-2: #fff8e7;
  --red: #b73a2b;
  --gold: #c48a24;
  --ink: #241c16;
  --muted: #75634d;
  --rule: rgba(36, 28, 22, .18);
  --shadow: 0 18px 36px rgba(17, 32, 58, .18);
  --radius: 8px;
  --mincho: "Shippori Mincho", serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;
}

body.theme-cafe {
  --navy: #4a3526;
  --navy-2: #5b3d2f;
  --paper: #f4ead5;
  --paper-2: #fff8e7;
  --red: #9b3b3b;
  --gold: #d8a13a;
  --ink: #2f241c;
  --muted: #705b45;
  --rule: rgba(74, 53, 38, .2);
  --shadow: 0 18px 34px rgba(74, 53, 38, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 32, 58, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(0deg, rgba(183, 58, 43, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--paper);
  font-family: var(--gothic);
  line-height: 1.85;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: var(--paper-2);
  border-bottom: 4px solid var(--gold);
}

body.theme-cafe .site-header {
  background: var(--paper-2);
  color: var(--ink);
}

.header-inner {
  width: min(100% - 32px, 1200px);
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-grid;
  gap: 0;
  line-height: 1.05;
}

.brand-ja {
  font-family: var(--mincho);
  font-size: 30px;
  font-weight: 700;
}

.brand-en {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.global-nav {
  margin-left: auto;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.global-nav a,
.header-cta {
  font-size: 14px;
  font-weight: 700;
}

.global-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--red);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
}

.header-cta,
.btn.primary {
  color: var(--paper-2);
  background: var(--red);
  box-shadow: 0 7px 0 rgba(36, 28, 22, .18);
}

.btn.secondary {
  color: var(--navy);
  background: var(--paper-2);
  border: 2px solid var(--gold);
}

.nav-toggle,
.nav-button {
  display: none;
}

.breadcrumbs {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--paper-2);
  background: var(--navy);
}

.hero-img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-img {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(17, 32, 58, .92), rgba(17, 32, 58, .72) 39%, rgba(17, 32, 58, .2));
}

.hero-inner {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 0 96px;
}

.hero-eyebrow,
.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.entry-header h1,
.archive-header h1,
.mailmag h2 {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.18;
}

.hero h1 {
  max-width: none;
  font-size: clamp(38px, 4.6vw, 60px);
  white-space: nowrap;
}

.hero-lead {
  max-width: 460px;
  margin: 22px 0 0;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.section {
  padding: 82px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 14px;
}

.section-heading h2,
.archive-header h1,
.mailmag h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.feature-grid,
.article-grid,
.reading-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

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

.article-grid,
.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.article-card,
.reading-card,
.category-card,
.toc-box,
.author-box,
.ranking-panel,
.new-panel,
.mailmag {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card,
.article-card,
.reading-card,
.category-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover,
.article-card:hover,
.reading-card:hover,
.category-card:hover {
  transform: translateY(-3px);
}

.feature-card img,
.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-card div,
.article-card,
.reading-card,
.category-card {
  padding: 20px;
}

.feature-card span,
.article-card span,
.news-list span,
.ranking-list span {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.feature-card h3,
.article-card h2,
.article-card h3,
.reading-card h3,
.category-card h2,
.ranking-list strong,
.news-list strong {
  margin: 6px 0;
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.35;
}

.feature-card p,
.article-card p,
.reading-card p,
.category-card p,
.mailmag p,
.entry-content p,
.author-bio {
  color: var(--muted);
}

.reading-card span,
.category-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--paper-2);
  background: var(--navy);
  font-family: var(--mincho);
  font-weight: 700;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
}

.ranking-panel,
.new-panel {
  padding: 28px;
}

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

.ranking-list li + li {
  border-top: 1px solid var(--rule);
}

.ranking-list a {
  display: grid;
  grid-template-columns: 58px 70px 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
}

.ranking-list b {
  color: var(--gold);
  font-family: var(--mincho);
  font-size: 28px;
}

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

.news-list a {
  display: grid;
  grid-template-columns: 94px 70px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.news-list time,
.article-card time,
.entry-header time,
.pillar-card small {
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.mailmag {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 36px;
  margin-bottom: 86px;
  background: var(--navy);
  color: var(--paper-2);
}

body.theme-cafe .mailmag {
  background: var(--coffee, var(--navy));
}

.mailmag p {
  color: rgba(255, 248, 231, .82);
  margin-bottom: 0;
}

.archive-page,
.entry {
  padding: 58px 0 86px;
}

.archive-header,
.entry-header {
  max-width: 860px;
  margin-bottom: 30px;
}

.entry-header h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.entry-visual {
  margin: 0 0 34px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.entry-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content,
.toc-box,
.author-box,
.related-block,
.tag-list {
  max-width: 860px;
  margin-inline: auto;
}

.entry-content {
  font-size: 18px;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 34px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2em;
  font-family: var(--mincho);
  line-height: 1.35;
}

.entry-content h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  font-size: 32px;
}

.entry-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc-box {
  padding: 24px;
  margin-bottom: 32px;
}

.toc-box h2,
.author-box h2,
.related-block h2 {
  margin: 0 0 12px;
  font-family: var(--mincho);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin-top: 34px;
  list-style: none;
}

.tag-list a {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.author-box {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 24px;
  margin-top: 42px;
}

.author-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.author-title {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 700;
}

.author-follows {
  margin-top: 16px;
}

.author-follow-message {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.author-follow-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-follow-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  color: var(--navy);
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 700;
}

.author-follow-button:hover {
  color: var(--paper-2);
  background: var(--red);
  border-color: var(--red);
}

.affiliate-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 28px auto;
  max-width: 860px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.affiliate-label {
  flex-basis: 100%;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--muted);
  color: var(--paper-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.affiliate-media {
  flex: 0 0 auto;
}

.affiliate-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 170px;
  object-fit: contain;
}

.affiliate-body {
  flex: 1 1 240px;
  min-width: 0;
}

.affiliate-name {
  margin: 0 0 12px;
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.4;
}

.affiliate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--paper-2);
}

.aff-amazon {
  background: #ff9900;
  color: #1a1a1a;
}

.aff-rakuten {
  background: #bf0000;
}

.aff-btn:hover {
  filter: brightness(1.05);
}

.related-block {
  margin-top: 52px;
}

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

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  font-weight: 700;
}

.pagination a {
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
}

.site-footer {
  color: var(--paper-2);
  background: var(--navy);
  border-top: 4px solid var(--gold);
}

body.theme-cafe .site-footer {
  background: var(--navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 28px;
  padding: 48px 0;
}

.footer-copy {
  color: rgba(255, 248, 231, .72);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-links h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 14px;
}

.footer-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 6px;
}

.copyright {
  align-self: end;
  margin: 0;
  color: rgba(255, 248, 231, .7);
  font-size: 12px;
}

@media (max-width: 900px) {
  .feature-grid,
  .article-grid,
  .category-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .global-nav {
    position: absolute;
    inset: 74px 0 auto;
    display: none;
    background: var(--navy);
    border-top: 1px solid rgba(255, 248, 231, .18);
  }

  body.theme-cafe .global-nav {
    background: var(--paper-2);
    border-top-color: var(--rule);
  }

  .global-nav ul {
    display: grid;
    gap: 0;
    padding: 10px 20px 18px;
  }

  .global-nav a {
    display: block;
    padding: 10px 0;
  }

  .nav-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(255, 248, 231, .4);
    border-radius: 50%;
  }

  body.theme-cafe .nav-button {
    border-color: var(--rule);
  }

  .nav-button span,
  .nav-button span::before,
  .nav-button span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .nav-button span {
    position: relative;
  }

  .nav-button span::before,
  .nav-button span::after {
    position: absolute;
    content: "";
    left: 0;
  }

  .nav-button span::before {
    top: -6px;
  }

  .nav-button span::after {
    top: 6px;
  }

  .nav-toggle:checked ~ .global-nav {
    display: block;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-ja {
    font-size: 25px;
  }

  .global-nav {
    inset: 68px 0 auto;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-img {
    object-position: 70% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(17, 32, 58, .94), rgba(17, 32, 58, .68) 66%, rgba(17, 32, 58, .25));
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding-top: 58px;
  }

  .section-heading {
    display: block;
  }

  .feature-grid,
  .article-grid,
  .reading-grid,
  .category-grid,
  .article-grid.compact,
  .footer-inner,
  .mailmag {
    grid-template-columns: 1fr;
  }

  .news-list a {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ranking-list a {
    grid-template-columns: 48px 1fr;
  }

  .ranking-list span {
    display: none;
  }

  .mailmag {
    padding: 28px;
  }

  .entry-content {
    font-size: 16px;
  }

  .author-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    display: grid;
    width: 100%;
  }

  .hero h1 {
    font-size: 34px;
  }
}

.sake-finder {
  padding: 58px 0 86px;
}

.sake-finder-hero {
  max-width: 860px;
  margin-bottom: 24px;
}

.sake-finder-hero h1 {
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.18;
}

.sake-finder-hero p:last-child {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.sake-search-panel {
  max-width: 860px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sake-search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.sake-search-input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: #fffdf5;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}

.sake-search-input:focus {
  border-color: var(--red);
  outline: 3px solid rgba(196, 138, 36, .25);
  outline-offset: 2px;
}

.sake-result {
  display: grid;
  gap: 22px;
  max-width: 960px;
}

.sake-detail-card,
.sake-candidates,
.sake-empty {
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sake-facets {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: grid;
  gap: 12px;
}

.sake-facet-group {
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sake-facet-group h2 {
  margin: 0 0 10px;
  color: var(--red);
  font-family: var(--mincho);
  font-size: 18px;
}

.sake-facet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sake-facet-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 6px 12px;
  color: var(--ink);
  background: #fffdf5;
  border: 1px solid var(--red);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.sake-facet-chip:hover,
.sake-facet-chip:focus {
  outline: 2px solid rgba(183, 58, 43, .18);
  outline-offset: 2px;
}

.sake-facet-chip.is-active {
  color: var(--paper-2);
  background: var(--red);
  border-color: var(--red);
}

.sake-related-facets {
  display: grid;
  gap: 12px;
}

.sake-brand-chip {
  border-color: var(--gold);
}

.sake-result-count {
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.sake-match-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sake-match-item {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffdf5;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sake-match-item:hover,
.sake-match-item:focus {
  border-color: var(--red);
  outline: none;
}

.sake-match-item strong {
  line-height: 1.35;
}

.sake-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sake-match-price {
  color: var(--red);
}

.sake-clear-button {
  display: inline-block;
  margin: 18px 8px 0 0;
  padding: 8px 12px;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sake-clear-button:hover,
.sake-clear-button:focus {
  outline: 2px solid rgba(183, 58, 43, .2);
  outline-offset: 2px;
}

.sake-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rule);
}

.sake-detail-head h2 {
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
}

.sake-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  color: var(--paper-2);
  background: var(--navy);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.sake-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.sake-meta div {
  padding: 12px 14px;
  background: #fffdf5;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.sake-meta dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sake-meta dd {
  margin: 0;
  font-weight: 700;
}

.sake-field {
  margin-top: 18px;
}

.sake-field h3 {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 15px;
}

.sake-field p {
  margin: 0;
  color: var(--muted);
}

.sake-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sake-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  background: #fffdf5;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.sake-candidates h2,
.sake-empty h2 {
  margin: 0 0 10px;
  font-family: var(--mincho);
  font-size: 24px;
}

.sake-candidates p,
.sake-empty p {
  margin: 0;
  color: var(--muted);
}

.sake-candidate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sake-candidate {
  min-height: 58px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffdf5;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sake-candidate:hover,
.sake-candidate:focus {
  border-color: var(--red);
  outline: 2px solid rgba(183, 58, 43, .18);
  outline-offset: 2px;
}

.sake-candidate strong {
  display: block;
  line-height: 1.35;
}

.sake-candidate span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sake-candidate {
  transform-origin: 50% 0;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sake-candidate:hover,
.sake-candidate:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(45, 31, 20, .5);
}

.sake-candidate-list.sake-deal .sake-candidate {
  animation: sakeDeal .52s cubic-bezier(.18, .82, .25, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
  will-change: transform, opacity;
}

.sake-candidate-list.sake-deal .sake-candidate:nth-child(odd) {
  --deal-x: -36px;
  --deal-rot: -9deg;
}

.sake-candidate-list.sake-deal .sake-candidate:nth-child(even) {
  --deal-x: 36px;
  --deal-rot: 9deg;
}

@keyframes sakeDeal {
  0% {
    opacity: 0;
    transform: translate3d(var(--deal-x, -28px), -128px, 0) rotate(var(--deal-rot, -8deg)) scale(.88);
    box-shadow: 0 24px 32px -16px rgba(45, 31, 20, .55);
  }
  60% {
    opacity: 1;
  }
  82% {
    transform: translate3d(0, 6px, 0) rotate(calc(var(--deal-rot, -8deg) * -0.12)) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
    box-shadow: 0 0 0 0 rgba(45, 31, 20, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sake-candidate-list.sake-deal .sake-candidate {
    animation: none;
  }
}

.sake-facet-list.sake-deal .sake-facet-chip,
.sake-match-list.sake-deal .sake-match-item {
  transform-origin: 50% 0;
  animation: sakeDealChip .42s cubic-bezier(.2, .8, .28, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  will-change: transform, opacity;
}

@keyframes sakeDealChip {
  0% {
    opacity: 0;
    transform: translate(-22px, -32px) rotate(-9deg) scale(.82);
  }
  62% {
    opacity: 1;
  }
  82% {
    transform: translate(0, 3px) rotate(1.2deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sake-facet-list.sake-deal .sake-facet-chip,
  .sake-match-list.sake-deal .sake-match-item {
    animation: none;
  }
}

.sake-category-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  margin-top: 16px;
  color: var(--paper-2);
  background: var(--red);
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .sake-finder {
    padding: 42px 0 64px;
  }

  .sake-search-panel,
  .sake-detail-card,
  .sake-candidates,
  .sake-empty,
  .sake-facet-group {
    padding: 18px;
  }

  .sake-search-input {
    font-size: 16px;
  }

  .sake-facet-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .sake-facet-chip {
    flex: 0 0 auto;
  }

  .sake-meta,
  .sake-candidate-list,
  .sake-match-meta {
    grid-template-columns: 1fr;
  }

  .sake-clear-button {
    margin-right: 0;
  }
}
