@import url('https://fonts.googleapis.com/css2?family=Darumadrop+One&display=swap');

/* Design tokens */
:root {
  --ink: #242624;
  --muted: #616561;
  --line: #e8e9e7;
  --paper: #fdf9f9;
  --surface: #fff;
  --accent: #b84e2f;
  --cream: #f8f1e7;
  --content-width: 720px;
  --header-height: 64px;
  --image-radius: 5px;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Shared layout */
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 0 112px;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  isolation: isolate;
  width: calc(100% - 48px);
  max-width: var(--content-width);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: var(--header-height);
  background: var(--paper);
  content: "";
  pointer-events: none;
}
.site-brand {
  color: var(--ink);
  font-family: "Darumadrop One", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
  color: var(--ink);
  font-size: 14px;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.menu-backdrop { display: none; }
.menu-toggle > span:not(.sr-only),
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 22px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle > span:not(.sr-only) { margin-block: 6px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Site footer */
.site-footer {
  padding: 28px 24px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-separator {
  margin: 0 5px;
  color: #fff;
}

/* Shared page components */
.page-title {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 42px;
}
.page-title h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: -.055em;
}
.page-title span,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}
.lead {
  max-width: 580px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Filters and article cards */
.category-box {
  margin: 40px 0 76px;
  padding: 42px 40px;
  border-radius: 16px;
  background: #f1eeee;
}
.filters,
.meta,
.categories {
  display: flex;
  flex-wrap: wrap;
}
.filters { gap: 10px; }
.filter {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter.is-active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.articles,
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 30px;
}
.card,
.gallery-card { min-width: 0; }
.gallery-card:nth-child(4) { display: none; }
.image,
.image-link,
.latest-photo {
  display: block;
  overflow: hidden;
  border-radius: var(--image-radius);
  background: #eee;
}
.image,
.image-link { margin-bottom: 18px; }
.image img,
.image-link img,
.latest-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.image-link figure { margin: 0; }
.meta {
  gap: 7px;
  margin-bottom: 15px;
}
.tag,
.category {
  border: 1px solid var(--ink);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}
.tag {
  padding: 6px 10px;
  border-radius: 18px;
  font-size: 13px;
}
.tag:hover,
.category:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.card h3,
.gallery-card h3 {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: -.025em;
}
.card h3 a,
.gallery-card h3 a { text-decoration: none; }
.date,
.card-date {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.card[hidden] { display: none; }

/* Home */
.intro {
  max-width: 700px;
  margin-bottom: 56px;
}
.intro h1 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.28;
  letter-spacing: -.055em;
}
.intro > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}
.latest {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line);
}
.latest-photo { position: relative; }
.latest-photo img { height: 100%; }
.label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.latest h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -.04em;
}
.latest h2 a { text-decoration: none; }
.new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 2px;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: middle;
}
.card-date .new-badge {
  margin: 0 8px 0 0;
  vertical-align: baseline;
}
.latest p {
  color: var(--muted);
  line-height: 1.8;
}
.dish {
  color: var(--ink) !important;
  font-weight: 700;
}
.text-link,
.section-head a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.section { padding-top: 64px; }
.section--gallery { padding-bottom: 64px; }
.section-head {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.045em;
}
.section-head a { color: var(--ink); }
.section-head a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Home guide */
.guide {
  padding-left: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.guide a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px 16px 0;
  text-decoration: none;
}
.guide a + a { border-top: 1px solid var(--line); }
.guide strong { color: var(--ink); }
.guide a:hover { color: var(--accent); }
.guide a:hover strong {
  color: var(--accent);
  text-decoration: underline;
}
.guide-icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.guide-copy { min-width: 0; }
.guide strong,
.guide span { display: block; }
.guide strong {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: -.025em;
}
.guide strong small {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.guide span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 761px) {
  .guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }
  .guide a + a { border-top: 0; }
  .guide a:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* About */
.profile {
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}
.profile h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -.035em;
}
.profile p,
.contact p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}
.rules-section {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}
.section h2 {
  margin-bottom: 24px;
  font-size: 26px;
  letter-spacing: -.04em;
}
.rules {
  margin: 0;
  padding-left: 1.35em;
}
.rules li {
  font-size: 16px;
  line-height: 1.8;
}
.rules li + li { margin-top: 14px; }
.place a { color: var(--accent); }
.contact a {
  color: inherit;
  text-decoration: none;
}
.contact a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Single article */
.article {
  max-width: var(--content-width);
  padding-top: 41px;
}
.categories,
.article > h1,
.article > .meta,
.article > .body {
  max-width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}
.categories { gap: 8px; }
.category {
  padding: 8px 12px 9px;
  border-radius: 20px;
  font-size: 13px;
}
.article > h1 {
  margin-top: 18px;
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -.045em;
}
.article > .meta {
  gap: 10px;
  margin-bottom: 44px;
  color: var(--ink);
  font-size: 14px;
}
.meta-item {
  display: flex;
  gap: 6px;
  align-items: center;
}
.meta-item svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}
.meta-tags {
  flex-basis: 100%;
  flex-wrap: wrap;
}
.meta-tags a {
  margin-right: .3em;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}
.meta-tags a:hover { color: var(--accent); }
.body {
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
}
.body p { margin-bottom: 1.7em; }
.body a {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.body a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.hero {
  width: var(--content-width);
  max-width: calc(100vw - 48px);
  margin: 44px 50% 52px;
  transform: translateX(-50%);
}
.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--image-radius);
  object-fit: cover;
}
.hero figcaption {
  margin-top: 14px;
  font-size: 18px;
  text-align: center;
}
.place {
  margin-bottom: 1.7em;
  font-size: 17px;
  line-height: 1.9;
}
.place span,
.place a { display: block; }
.place span { font-weight: 700; }

/* Previous / next article navigation */
.article-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: var(--content-width);
  margin: 56px auto 0;
  border-top: 1px solid var(--line);
}
.article-post-link {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.article-post-link:hover { color: var(--accent); }
.article-post-link img {
  width: 100px;
  height: 72px;
  border-radius: var(--image-radius);
  object-fit: cover;
}
.article-post-copy small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.article-post-copy strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
.article-post-link.next {
  grid-template-columns: minmax(0, 1fr) 100px;
  padding: 20px 20px 20px 0;
  text-align: right;
}
.article-post-link.next img { grid-column: 2; }
.article-post-link.next .article-post-copy {
  grid-row: 1;
  grid-column: 1;
}
.article-post-arrow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
}
.article-post-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.article-post-link.next .article-post-arrow {
  right: 0;
  left: auto;
}
.article-post-navigation--next-only .article-post-link.next { grid-column: 2; }

/* Mobile */
@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 36px);
    border-bottom: 0;
  }
  .site-header::after {
    position: fixed;
    top: 63px;
    right: 0;
    left: 0;
    border-bottom: 1px solid var(--line);
    content: "";
  }
  .site-brand,
  .menu-toggle,
  .site-nav { z-index: 1; }
  .site-brand { font-size: 26px; }
  .menu-toggle { display: block; }
  .menu-backdrop {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background: rgb(0 0 0 / 38%);
  }
  .site-header.is-menu-open .menu-backdrop { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    width: auto;
    padding: 0 0 0 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .site-header.is-menu-open .site-nav {
    display: grid;
    gap: 0;
  }
  .site-nav a {
    padding: 16px 18px 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-header.is-menu-open .menu-toggle::before {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.is-menu-open .menu-toggle > span:not(.sr-only) { opacity: 0; }
  .site-header.is-menu-open .menu-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  main { padding: 32px 18px 72px; }
  .section--gallery {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .page-title {
    gap: 10px;
    margin-bottom: 36px;
  }
  .page-title h1 { font-size: 34px; }
  .articles,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 14px;
  }
  .gallery-card:nth-child(4) { display: block; }
  .card h3,
  .gallery-card h3,
  .guide strong { font-size: 16px; }
  .category-box {
    margin: 32px 0 52px;
    padding: 28px 22px;
    border-radius: 12px;
  }
  .filter {
    padding: 8px 12px;
    font-size: 13px;
  }
  .latest {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 48px;
  }
  .article { padding-top: 26px; }
  .article > h1 { font-size: 30px; }
  .article .category { font-size: 11px; }
  .tag { font-size: 11px; }
  .body { font-size: 15px; }
  .place { font-size: 15px; }
  .article-post-copy small { font-size: 11px; }
  .article-post-copy strong { font-size: 15px; }
  .hero { margin-bottom: 36px; }
  .article-post-navigation {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .article-post-navigation--next-only .article-post-link.next { grid-column: auto; }
}
