/* =========================
   CHEFS OF KANSAI
   ========================= */

:root {
  --bg: #f4f1e9;
  --bg-soft: #e8e0d4;
  --ink: #252720;
  --muted: #737367;
  --line: rgba(37, 39, 32, 0.2);
  --dark: #2a211b;
  --paper: #f8f6ef;
  --accent: #a34f3d;

  --container: 1240px;
  --side: clamp(22px, 5vw, 72px);
  --section-space: clamp(90px, 12vw, 170px);
}

/* ---------- RESET ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: min(calc(100% - (var(--side) * 2)), var(--container));
  margin-inline: auto;
}


/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
.brand {
  font-family: "Cormorant Garamond", "Yu Mincho", serif;
  font-weight: 400;
}

h2 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(30px, 3vw, 45px);
  line-height: 1.05;
}

.eyebrow,
.language-label,
.section-number,
.author-role,
.place-index {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;

  /*
    Put your chosen cover image here:
    assets/Cover.png
  */
  background:
    url("assets/Cover1.png")
    center center / cover
    no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(12, 13, 10, 0.77) 0%,
      rgba(12, 13, 10, 0.58) 34%,
      rgba(12, 13, 10, 0.18) 68%,
      rgba(12, 13, 10, 0.04) 100%
    );
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 26px;
}

.brand {
  font-size: 22px;
  letter-spacing: 0;
  padding-top: 8px;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-family: "Cormorant Garamond", "Yu Mincho", serif;
  font-size: 24px;
  letter-spacing: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  justify-content: center;
  transform: translate(-50%, -50%);
  padding-top: 28px;
}

.nav-links a {
  position: relative;
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  right: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}

.eyebrow {
  margin-bottom: 30px;
  opacity: 0.72;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(68px, 8.5vw, 122px);
  line-height: 0.84;
  letter-spacing: 0;
  font-weight: 400;
}

.hero-jp {
  margin-bottom: 62px;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(18px, 2.1vw, 28px);
  letter-spacing: 0.13em;
  opacity: 0.78;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  top: clamp(8px, 2vh, 28px);
}

.scroll-link span {
  transition: transform 180ms ease;
}

.scroll-link:hover span {
  transform: translateY(3px);
}


/* ---------- ATMOSPHERIC INTRO ---------- */

.intro-section {
  display: grid;
  place-items: center;
  min-height: 78svh;
  padding: var(--section-space) 0;
  background: linear-gradient(
    180deg,
    var(--dark) 0%,
    #7d6c5b 22%,
    #e7dfd4 44%,
    var(--paper) 58%
  );
}

.intro-inner {
  text-align: center;
}

.intro-mark {
  margin-bottom: 42px;
  color: var(--accent);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 14px;
  letter-spacing: 0.22em;
}

.intro-inner h2 {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-jp {
  margin-bottom: 0;
  color: var(--muted);
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: 0.08em;
}


/* ---------- GENERIC SECTION ---------- */

.section {
  padding: var(--section-space) 0;
}

.section-light {
  background: var(--bg);
}

.section-muted {
  background: var(--bg-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(52px, 7vw, 92px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(54px, 6.5vw, 84px);
  line-height: 0.86;
  letter-spacing: 0;
}

.section-number {
  margin-bottom: 9px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.section-intro {
  max-width: 560px;
  margin: -44px 0 58px auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}


/* ---------- ABOUT ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 9vw, 140px);
  align-items: start;
}

.about-column {
  max-width: 540px;
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.48;
  padding-top: 5px;
}

.about-column p {
  margin-bottom: 1.45em;
}

.about-column-jp {
  padding-top: 5px;
  transform: translateY(-4px);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 2;
}

.language-label {
  margin: 0 0 26px 0;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* ---------- PLACES ---------- */

.places-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  margin: -28px 0 40px;
}

.places-copy p {
  margin: 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
}

.places-copy p:first-child {
  transform: translateY(-10px);
}

.places-copy p:last-child {
  color: rgba(37, 39, 32, 0.82);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(15px, 1.2vw, 20px);
  letter-spacing: 0.02em;
}

.places-map-panel {
  position: relative;
  margin-top: clamp(28px, 4vw, 52px);
  padding: clamp(14px, 2vw, 24px);
  background:
    linear-gradient(135deg, rgba(106, 86, 59, 0.1), rgba(245, 240, 231, 0.78)),
    #efe5d6;
  border: 1px solid rgba(43, 33, 27, 0.12);
  box-shadow: 0 20px 40px rgba(60, 42, 28, 0.08);
}

.places-map-panel::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(60, 46, 33, 0.14);
  content: "";
  pointer-events: none;
}

.map-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  background: #efe9df;
  border: 1px solid rgba(44, 30, 23, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.map-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.12) saturate(0.82) contrast(1.02);
}

.places-city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 4vw, 48px);
}

.city-card {
  padding: 24px 20px 18px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(42, 33, 27, 0.12);
  box-shadow: 0 10px 22px rgba(52, 37, 23, 0.03);
}

.city-number {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.city-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 46px);
  line-height: 0.95;
}

.city-jp {
  margin-bottom: 14px;
  color: rgba(37, 39, 32, 0.72);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 16px;
}

.city-tag {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
}

.city-description,
.city-description-jp {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.city-description-jp {
  margin-top: 10px;
  color: rgba(37, 39, 32, 0.76);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 13px;
}

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

.place-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(420px, 44vw, 600px);
  padding: clamp(26px, 3.5vw, 44px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.place-card:nth-child(1),
.place-card:nth-child(4) {
  grid-column: span 7;
}

.place-card:nth-child(2),
.place-card:nth-child(3) {
  grid-column: span 5;
}

.place-card::after {
  position: absolute;
  z-index: 1;
  inset: 30% 0 0;
  background: linear-gradient(0deg, rgba(18, 20, 17, 0.82), transparent);
  content: "";
  pointer-events: none;
}

.place-photo-slot {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  background-color: #867967;
  background-image: var(--place-image);
  background-position: center;
  background-size: cover;
  transition: transform 500ms ease;
}

.place-card:nth-child(2) .place-photo-slot {
  background-color: #8b725f;
}

.place-card:nth-child(3) .place-photo-slot {
  background-color: #75806e;
}

.place-card:nth-child(4) .place-photo-slot {
  background-color: #9a846e;
}

.place-photo-slot::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  content: "";
  pointer-events: none;
}

.place-photo-note {
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.place-card:hover .place-photo-slot {
  transform: scale(1.025);
}

.place-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.9;
  letter-spacing: 0;
}

.place-card p:last-child {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.65;
}

.place-index {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}


/* ---------- AUTHORS ---------- */

.authors-grid {
  display: grid;
  gap: clamp(90px, 8vw, 120px);
}

.author-card {
  padding-top: 18px;
  border-top: 1px;
}

.author-role {
  margin: 0 0 20  px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.18em;
  line-height: 1.1;
  transform: translateY(-8px);
}

.author-card h2 {
  margin: 0 0 12px;
  font-size: clamp(35px, 5vw, 55px);
  letter-spacing: -0.05em;
}

.author-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  padding-top: 0;
  border-top: none;
  color: var(--accent);
}

.author-column {
  max-width: 520px;
}

.author-column p {
  margin: 0 0 1.1em;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.55;
}

.author-column p:last-of-type {
  margin-bottom: 0;
}

.author-column .language-label {
  display: inline-block;
  margin: 0 0 24px 0;
  padding-top: 60px;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.author-column-jp p {
  color: rgba(37, 39, 32, 0.8);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.9;
}


.author-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(37, 39, 32, 0.35);
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.author-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.author-link span {
  font-size: 14px;
}


/* ---------- CONTACT ---------- */

.contact-section {
  padding: var(--section-space) 0 34px;
  background: linear-gradient(115deg, #4b3425 0%, var(--dark) 48%, #100e0c 100%);
  color: #f3eee5;
  border-top: 4px solid var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.contact-grid h2 {
  margin-bottom: 0;
}

.section-number-light {
  color: rgba(255,255,255,0.45);
}

.contact-content {
  padding-top: 76px;
}

.contact-content > p:first-child {
  color: rgba(255,255,255,0.62);
}

.contact-email {
  display: inline-block;
  margin: 10px 0 42px;
  padding-bottom: 0;
  color: #f3eee5;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(14px, 3.5vw, 40px);
  line-height: 1.1;
}

.contact-jp {
  max-width: 430px;
  color: rgba(255,255,255,0.46);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 110px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}


/* ---------- TABLET ---------- */

@media (max-width: 900px) {

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 18px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .place-card:nth-child(n) {
    grid-column: span 1;
    min-height: 420px;
  }

  .about-column-jp {
    padding-top: 0;
  }

  .section-intro {
    margin: -40px 0 60px 94px;
  }

  .contact-content {
    padding-top: 0;
  }
}


/* ---------- MOBILE ---------- */

@media (max-width: 680px) {

  :root {
    --side: 20px;
    --section-space: 86px;
  }

  .hero {
    min-height: 92svh;
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(12, 13, 10, 0.68) 0%,
        rgba(12, 13, 10, 0.48) 70%,
        rgba(12, 13, 10, 0.24) 100%
      );
  }

  .nav {
    flex-wrap: nowrap;
    gap: 12px;
    padding-top: 20px;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 15px;
  }

  .nav-links {
    display: flex;
    flex: none;
    justify-content: center;
    gap: clamp(8px, 2vw, 14px);
    font-size: 12px;
  }

  .hero-content {
    min-height: 86svh;
    justify-content: flex-end;
    padding-top: 100px;
    padding-bottom: 290px;
  }

  .hero h1 {
    font-size: clamp(48px, 12vw, 74px);
    line-height: 0.86;
  }

  .hero-jp {
    margin-bottom: 40px;
  }

  .intro-section {
    min-height: 70svh;
  }

  .intro-inner h2 br {
    display: none;
  }

  .section-heading {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    margin-bottom: 58px;
  }

  .section-heading h2 {
    font-size: clamp(50px, 14vw, 68px);
  }

  .section-intro {
    margin: -24px 0 48px;
  }

  .places-copy {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
  }

  .places-city-grid,
  .about-grid,
  .places-grid,
  .authors-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 54px;
  }

  .about-column {
    font-size: 22px;
  }

  .city-card {
    padding: 22px 18px 16px;
  }

  .city-tag {
    font-size: 24px;
  }

  .place-card {
    min-height: 420px;
    padding: 26px;
  }

  .place-card h3 {
    font-size: 48px;
  }

  .place-index {
    margin-bottom: 10px;
  }

  .place-card p:last-child {
    max-width: 290px;
    font-size: 12px;
  }

  .authors-grid {
    gap: 72px;
  }

  .author-card h3 {
    font-size: 48px;
  }

  .contact-grid {
    gap: 38px;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 72px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 13px;
  }

  .nav-links {
    gap: 7px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .brand,
  .nav-links {
    width: 100%;
  }

  .nav-links {
    position: static;
    justify-content: center;
    transform: none;
  }
}

@media (max-width: 680px) and (max-height: 520px) {
  .hero-content {
    justify-content: flex-start;
    padding: clamp(48px, 15vh, 62px) 0 24px;
  }

  .hero-content > h1 {
    order: 1;
    font-size: clamp(48px, 11vw, 60px);
  }

  .hero-content > .hero-jp {
    order: 2;
    margin-bottom: 14px;
  }

  .hero-content > .eyebrow {
    order: 3;
    margin-bottom: 12px;
    opacity: 0.78;
  }

  .hero-content > .scroll-link {
    order: 4;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: editorial-arrive 700ms both;
  }

  .hero-content > :nth-child(2) {
    animation-delay: 90ms;
  }

  .hero-content > :nth-child(3) {
    animation-delay: 160ms;
  }

  .hero-content > :nth-child(4) {
    animation-delay: 230ms;
  }
}

@keyframes editorial-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
