/* ==========================================================================
   Yeodam Bueok — albapa.com
   Korean home-kitchen editorial. Structural variant: Kitchen.
   Fonts: Fraunces (display) + Karla (body) + Noto Serif KR (Hangul accents)
   Breakpoints: 1120 / 800 / 480
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340;0,9..144,440;0,9..144,560;0,9..144,680;1,9..144,440;1,9..144,560&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Serif+KR:wght@400;600&display=swap');

:root{
  /* paper + ink */
  --paper: #f6f1e4;
  --paper-deep: #efe7d3;
  --card: #fffdf8;
  --ink: #262319;
  --ink-soft: #4a4536;

  /* Korean palette: celadon (cheongja) + dancheong red + brass */
  --celadon: #3f6b5c;
  --celadon-deep: #234238;
  --celadon-pale: #d9e6df;
  --danchu: #ab3b2d;
  --danchu-deep: #7e2a1f;
  --brass: #a9822f;
  --brass-pale: #e9d9a8;

  --line: rgba(38, 35, 25, 0.14);
  --shadow: 0 24px 60px -30px rgba(35, 30, 15, 0.45);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-kr: 'Noto Serif KR', 'Fraunces', serif;

  --measure: 62ch;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}
p{ margin: 0 0 1em; }
ul, ol{ margin: 0; padding: 0; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 999;
  font-size: 14px;
}
.skip-link:focus{ left: 12px; top: 12px; }

.kicker{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--celadon);
}

/* ==========================================================================
   Masthead nav — centered logo, split links, magazine style
   ========================================================================== */

.masthead{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.masthead-side{
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.masthead-side.left{ justify-content: flex-start; }
.masthead-side.right{ justify-content: flex-end; }
.masthead-side a{
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.masthead-side a:hover{ color: var(--danchu); border-color: var(--danchu); }

.brand{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-align: center;
}
.brand-mark{ font-size: 22px; line-height: 1; transform: translateY(2px); }
.brand-name{
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name em{ font-style: italic; color: var(--celadon); }

.burger{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger-lines{
  position: relative;
  width: 18px;
  height: 12px;
}
.burger-lines span{
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.burger-lines span:nth-child(1){ top: 0; }
.burger-lines span:nth-child(2){ top: 5px; }
.burger-lines span:nth-child(3){ top: 10px; }
.masthead.nav-open .burger-lines span:nth-child(1){ top: 5px; transform: rotate(45deg); }
.masthead.nav-open .burger-lines span:nth-child(2){ opacity: 0; }
.masthead.nav-open .burger-lines span:nth-child(3){ top: 5px; transform: rotate(-45deg); }

.mobile-nav{
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
  border-top: 1px solid var(--line);
}
.masthead.nav-open .mobile-nav{ max-height: 320px; }
.mobile-nav ul{ list-style: none; padding: 10px 32px 18px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a{
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Hero — Ken Burns background, gradient base, no button
   ========================================================================== */

.hero{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fbf7ee;
}
.hero-media{
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
  transform-origin: 55% 40%;
}
@keyframes kenburns{
  from{ transform: scale(1); }
  to{ transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce){
  .hero-media img{ animation: none; }
}
.hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23,26,20,0.15) 0%, rgba(20,23,17,0.15) 38%, rgba(16,18,13,0.78) 82%, rgba(12,14,10,0.94) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 72px;
}
.hero-content .kicker{ color: var(--brass-pale); }
.hero h1{
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  color: #fbf7ee;
  margin: 14px 0 20px;
  max-width: 15ch;
}
.hero h1 em{
  font-style: italic;
  color: var(--brass-pale);
}
.hero-sub{
  max-width: 46ch;
  font-size: 18.5px;
  color: rgba(251, 247, 238, 0.86);
  margin: 0;
}

/* ==========================================================================
   Principles band — full-width color, single text quote, no icons/cards
   ========================================================================== */

.principles-band{
  background: var(--celadon-deep);
  color: var(--celadon-pale);
  padding: 84px 0;
  position: relative;
}
.principles-inner{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.principles-band .kicker{ color: var(--brass-pale); justify-content: center; display: flex; }
.principles-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  line-height: 1.42;
  color: #fbf7ee;
  margin: 22px 0 26px;
}
.principles-quote .kr{
  font-family: var(--font-kr);
  font-style: normal;
  font-weight: 600;
}
.principles-note{
  max-width: 58ch;
  margin: 0 auto;
  font-size: 16.5px;
  color: rgba(217, 230, 223, 0.86);
}

/* ==========================================================================
   Recipes — editorial numbered list, 01..06, sequential (not grid)
   ========================================================================== */

.section{
  padding: 96px 0;
}
.section-head{
  max-width: 640px;
  margin: 0 0 52px;
}
.section-head h2{
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  margin: 12px 0 16px;
}
.section-head p{
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

.recipe-list{
  list-style: none;
  border-top: 1px solid var(--line);
}

.recipe-row{
  border-bottom: 1px solid var(--line);
}

.recipe-summary{
  display: grid;
  grid-template-columns: 96px 132px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.recipe-num{
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 3.1rem;
  color: var(--brass);
  opacity: 0.62;
  line-height: 1;
}
.recipe-thumb{
  width: 132px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.recipe-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.recipe-copy h3{
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.recipe-copy .teaser{
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0 0 8px;
  max-width: 58ch;
}
.recipe-meta{
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--celadon);
}
.recipe-toggle{
  justify-self: end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--danchu);
  transition: transform .3s ease, background .3s ease;
  flex-shrink: 0;
}
.recipe-row.is-open .recipe-toggle{
  transform: rotate(45deg);
  background: var(--danchu);
  color: #fff;
}

.recipe-details{
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}
.recipe-row.is-open .recipe-details{
  max-height: 1400px;
}
.recipe-details-inner{
  padding: 6px 0 44px 224px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
}
.recipe-details-inner img{
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.recipe-details h4{
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--danchu);
  margin-bottom: 12px;
}
.recipe-details ul, .recipe-details ol{
  margin: 0 0 22px;
  padding-left: 20px;
}
.recipe-details ul li, .recipe-details ol li{
  margin-bottom: 8px;
  font-size: 15.5px;
  color: var(--ink);
}
.recipe-details ul{ list-style: disc; }
.recipe-details ol{ list-style: decimal; }

/* ==========================================================================
   About — two columns, decorative divider, no photo
   ========================================================================== */

.about-section{
  background: var(--paper-deep);
}
.about-grid{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}
.about-col h2{
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}
.about-col p{
  color: var(--ink-soft);
  font-size: 16.5px;
}
.about-divider{
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--brass) 20%, var(--danchu) 50%, var(--brass) 80%, transparent);
  position: relative;
}
.about-divider::before{
  content: "味";
  font-family: var(--font-kr);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper-deep);
  color: var(--brass);
  font-size: 20px;
  padding: 10px 0;
}
.about-col.quote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--celadon-deep);
  line-height: 1.5;
  padding-top: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer{
  background: var(--ink);
  color: rgba(246, 241, 228, 0.82);
  padding: 72px 0 36px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246, 241, 228, 0.14);
}
.footer-brand .brand-name{ color: #fbf7ee; }
.footer-brand p{
  color: rgba(246, 241, 228, 0.66);
  font-size: 15px;
  max-width: 42ch;
  margin-top: 12px;
}
.footer-col h5{
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-pale);
  margin-bottom: 16px;
}
.footer-col ul{ list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a{
  text-decoration: none;
  color: rgba(246, 241, 228, 0.82);
  font-size: 15px;
}
.footer-col a:hover{ color: var(--brass-pale); }

.company-contact-box{
  margin-top: 40px;
  padding: 26px 28px;
  border: 1px solid rgba(246, 241, 228, 0.16);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 241, 228, 0.72);
}
.company-contact-box strong{ color: #fbf7ee; }

.footer-bottom{
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(246, 241, 228, 0.5);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-wrap{
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 100px;
}
.legal-wrap h1{
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.legal-updated{
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 44px;
}
.legal-wrap h2{
  font-size: 1.3rem;
  margin: 40px 0 12px;
}
.legal-wrap p, .legal-wrap li{
  color: var(--ink-soft);
  font-size: 16px;
}
.legal-wrap ul{ padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.legal-wrap li{ margin-bottom: 8px; }
.legal-wrap a{ color: var(--celadon); }
.back-link{
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--danchu);
  text-decoration: none;
}

/* ==========================================================================
   Reveal on scroll — CSS animation-timeline primary, JS fallback minimal
   ========================================================================== */

[data-reveal]{
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference){
    [data-reveal]{
      opacity: 0;
      transform: translateY(28px);
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}

@keyframes reveal-in{
  to{ opacity: 1; transform: translateY(0); }
}

/* fallback class applied by revealFallback() JS when animation-timeline unsupported */
[data-reveal].reveal-fallback{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].reveal-fallback.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  [data-reveal].reveal-fallback{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Breakpoints — 1120 / 800 / 480
   ========================================================================== */

@media (max-width: 1120px){
  .recipe-details-inner{ padding-left: 124px; grid-template-columns: 1fr; }
  .recipe-summary{ grid-template-columns: 68px 108px 1fr auto; gap: 20px; }
  .recipe-thumb{ width: 108px; height: 84px; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 800px){
  body{ font-size: 17px; }
  .masthead-side{ display: none; }
  .burger{ display: flex; }
  .mobile-nav{ display: block; }
  .masthead-inner{ grid-template-columns: auto 1fr auto; }
  .hero{ min-height: 78vh; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-divider{ width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--danchu) 50%, var(--brass) 80%, transparent); }
  .about-divider::before{ top: 0; }
  .recipe-summary{ grid-template-columns: 52px 92px 1fr; }
  .recipe-toggle{ display: none; }
  .recipe-details-inner{ padding-left: 0; }
  .section{ padding: 68px 0; }
  .footer-top{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .container, .masthead-inner, .hero-content, .principles-inner{ padding-left: 20px; padding-right: 20px; }
  .brand-name{ font-size: 19px; }
  .recipe-summary{ grid-template-columns: 40px 78px 1fr; gap: 14px; padding: 22px 0; }
  .recipe-thumb{ width: 78px; height: 64px; }
  .recipe-num{ font-size: 2.1rem; }
  .recipe-copy h3{ font-size: 1.2rem; }
  .principles-band{ padding: 60px 0; }
  .legal-wrap{ padding: 44px 20px 72px; }
}
