/* Shared visual language: quiet navy, warm paper and restrained brand orange. */
:root{--paper:#fcfbf8;--surface:#f2f3f0;--ink:#173347;--muted:#61717c;--accent:#176a73;--hover:#10535b;--line:#dce3e2;--shadow:0 14px 40px #1733470b;--brand-orange:#ed742d}
:root[data-theme="dark"]{--paper:#111e28;--surface:#192b36;--ink:#edf4f4;--muted:#a8bac2;--accent:#82d1cc;--hover:#a6e5df;--line:#304550;--shadow:0 14px 40px #0002}
body{line-height:1.65;letter-spacing:-.02em;background:var(--paper)}
.wrap{width:min(1200px,calc(100% - 64px))}
h1,h2,h3{font-feature-settings:"kern";text-wrap:balance}p{ text-wrap:pretty }
header{border-bottom:1px solid var(--line);background:var(--paper);box-shadow:none;min-height:84px;padding:12px 0}
header .menu-trigger{border-radius:50%;background:transparent}
header .brand img,.home-page header .brand img{width:180px;max-height:64px;object-fit:contain}
header nav a{font-weight:600}header nav a:hover{color:var(--accent)}
.menu-trigger:hover,.theme-toggle:hover{background:var(--surface)}
.hero{grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,72px);padding:64px 0 56px}
.hero .hero-copy{padding-inline-start:0;text-align:left}
.hero h1{font-size:clamp(38px,4.6vw,62px);letter-spacing:-.06em;line-height:1.22;margin:24px 0}
.hero h1 em{color:var(--accent)}
.hero .intro{font-size:15px;line-height:1.95;max-width:440px}
.eyebrow{border:0;background:var(--surface);color:var(--accent);padding:8px 13px;letter-spacing:1.2px;font-weight:700}
.eyebrow:before{background:var(--brand-orange)}
.cta,.inquiry-submit{background:var(--ink);color:var(--paper);border-radius:999px;box-shadow:none;font-weight:650}
.cta{gap:30px;padding:14px 24px;margin-top:28px}.cta:hover,.inquiry-submit:hover{background:var(--accent);color:#fff}
.trend-video{border-radius:20px;background:var(--surface);box-shadow:none}.video-heading{padding:22px 24px 0}.trend-video h2{font-size:25px;letter-spacing:-1px}.video-badge{background:var(--paper);color:var(--accent)}
.ribbon{padding:20px 0;gap:28px}.ribbon span{color:var(--accent)}
.section-head{margin:56px 0 26px;align-items:end}.section-head small,.guide-feature>.meta{font-size:10px;letter-spacing:1.8px;color:var(--accent);font-weight:700}.section-head h2{font-size:32px;letter-spacing:-1.4px;line-height:1.35}
.cards{gap:24px}.card{padding:0 0 20px;border-radius:16px;background:var(--paper);border:1px solid var(--line);box-shadow:none}.card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--accent) 45%,var(--line));box-shadow:var(--shadow)}
.card .news-photo{border-radius:0;margin:0;overflow:hidden;aspect-ratio:16/10;height:auto}.card .news-photo img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.card:hover .news-photo img{transform:scale(1.025)}
.card .news-photo-credit{margin:8px 20px 0;font-size:10px;color:var(--muted)}.card .cat{margin:16px 20px 10px}.card h3{margin:0 20px;font-size:19px;line-height:1.65;letter-spacing:-.6px}.card .desc{margin:12px 20px 20px;font-size:13px;line-height:1.85}.card .read{margin:0 20px;padding-top:14px}
.home-page #trends + .guide-feature{margin-top:56px;padding-top:40px;border-top:1px solid var(--line)}
.guide-feature{background:transparent}.guide-feature h2{font-size:clamp(25px,3vw,34px);letter-spacing:-1.2px}.guide-grid{gap:18px}.guide-tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:none}.guide-tile h3{font-size:19px;line-height:1.6}.guide-tile a{font-weight:650;color:var(--accent)}
.board-page,.recipe-page,.about-page{padding-top:42px}.board-heading h1,.recipe-page>h1,.about-page h1{font-size:clamp(32px,4vw,44px);letter-spacing:-1.7px;line-height:1.3}
.board-form,.board-comment,.recipe-panel,#recipe-editor,.partnership,.about{background:var(--surface);border-color:var(--line);border-radius:16px;box-shadow:none}
.board-row{padding-top:22px;padding-bottom:22px}.board-row:hover{background:var(--surface)}
.board-page input,.board-page textarea,.recipe-page input,.recipe-page textarea,.recipe-page select,.inquiry-field input,.inquiry-field textarea{border-radius:10px;border-color:var(--line)}
#board-write,#board-post-submit,#board-comment-submit,#board-edit-submit,#board-edit-open,#recipe-post-submit{background:var(--accent);border-color:var(--accent);color:#fff;border-radius:10px}
.recipe-search{border-radius:14px;background:var(--surface)}.recipe-row{transition:none}.recipe-category{background:var(--surface);color:var(--accent);border-color:var(--line)}
footer{margin-top:48px;padding-top:24px}.journal-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.theme-toggle,.share-floating-button,.visitor-counter{box-shadow:0 4px 18px #1733470b;border-color:var(--line)}
:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@media(max-width:800px){.wrap{width:calc(100% - 32px)}header{min-height:64px;padding:6px 0}header .brand img,.home-page header .brand img{width:min(117px,32vw);max-height:50px}.hero{grid-template-columns:1fr;gap:28px;padding:36px 0}.hero .hero-copy{text-align:left;max-width:620px}.hero h1{font-size:clamp(36px,7vw,52px)}.hero .intro{max-width:540px;font-size:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.section-head{margin-top:40px}.section-head h2{font-size:28px}.board-page,.recipe-page,.about-page{padding-top:28px}}
@media(max-width:540px){header .brand img,.home-page header .brand img{width:min(108px,35vw);max-height:46px}.hero{padding:28px 0;gap:26px}.hero h1{font-size:38px;margin:20px 0;letter-spacing:-1.8px}.hero .intro{font-size:13px}.hero .eyebrow{font-size:8px}.cta{padding:12px 21px;font-size:12px}.cards{grid-template-columns:1fr;gap:20px}.card h3{font-size:20px}.section-head{align-items:flex-start}.section-head h2{font-size:26px}.ribbon{gap:12px;padding:16px 0}.home-page #trends + .guide-feature{margin-top:36px;padding-top:28px}.guide-tile{padding:20px}.trend-video h2{font-size:23px}.board-form,.board-comment{padding:18px}footer{margin-top:32px}.journal-footer{gap:clamp(5px,1.5vw,10px)}}
@media(prefers-reduced-motion:reduce){.card,.card .news-photo img,.recipe-row{transition:none}.card:hover{transform:none}}
#trends .card{padding:0 0 20px}#trends .card .cat{margin-top:16px}
.home-introduction .about-cta,.journal-tool button,.print-guide{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:none}
@media(max-width:700px){footer{flex-wrap:nowrap;align-items:center;gap:10px}.footer-brand{flex:none;align-self:center}.footer-brand img,.footer-brand .site-logo{width:80px}.journal-footer{flex:1 1 auto;flex-basis:auto;gap:3px 8px;align-self:center}.journal-footer a{font-size:clamp(8px,2vw,11px);min-height:24px}}

/* Shared site palette, typography and components. */
:root{
  --paper:#faf8f5;--surface:#f0ece6;--ink:#233344;--muted:#606b75;
  --accent:#a94319;--hover:#843212;--line:#dedbd5;
  --brand-orange:#d7652b;--shadow:0 12px 32px #2333440c;
  --home-card:#fffdf9;--home-radius:16px;
  --home-font:"Pretendard","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
}
:root[data-theme="dark"]{
  --paper:#151c25;--surface:#202a35;--ink:#f2ede6;--muted:#b7bec5;
  --accent:#ffb184;--hover:#ffcaab;--line:#36414d;
  --brand-orange:#ffb184;--home-card:#1c2530;--shadow:0 12px 32px #0002;
}
body{font-family:var(--home-font);font-size:15px;line-height:1.8;letter-spacing:-.025em}
button,input,textarea,select{font-family:inherit}
h1,h2,h3{font-family:inherit;font-weight:700;letter-spacing:-.045em;line-height:1.45}
header{background:var(--paper)}
.home-page .hero h1{font-weight:750;line-height:1.3;letter-spacing:-.05em}
.home-page .hero h1 em{color:var(--accent)}
.home-about-copy h2,.home-page .section-head h2,.home-page .guide-feature h2{font-size:clamp(25px,3vw,34px);line-height:1.45;letter-spacing:-.04em;font-weight:700}
.home-about-copy p,.home-page .hero .intro,.home-page .partnership-intro{font-size:15px;line-height:1.95;color:var(--muted)}
.home-page .about-label,.home-page .eyebrow,.home-page .section-head small,.home-page .video-kicker,.home-page .guide-feature>.meta{color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.12em}
.home-page .home-about-brand .about-label{align-self:flex-start;font-size:11px;letter-spacing:.16em}
.home-page .home-introduction{padding-block:44px;border-bottom:1px solid var(--line)}
.home-page .eyebrow,.home-page .video-badge{background:var(--surface);border:1px solid var(--line);border-radius:8px}
.home-page .eyebrow:before{background:var(--brand-orange)}
.home-page .card,.home-page .trend-video,.home-page .guide-tile,.home-page .partnership{background:var(--home-card);border:1px solid var(--line);border-radius:var(--home-radius);box-shadow:none}
.home-page .card:hover,.home-page .guide-tile:hover{border-color:var(--accent);box-shadow:var(--shadow)}
.home-page .card h3,.home-page .guide-tile h3{font-size:20px;font-weight:700;line-height:1.65;letter-spacing:-.035em}
.home-page .card .cat{font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--accent)}
.home-page .card .desc,.home-page .guide-tile p{font-size:14px;line-height:1.85;color:var(--muted)}
.home-page .card .read,.home-page .video-meta,.home-page .video-status{font-size:12px;line-height:1.8;color:var(--muted)}
.home-page .trend-video h2{font-size:23px;font-weight:700;line-height:1.5}
.home-page .video-kicker>span{color:var(--accent)}
.home-page .video-placeholder{background:var(--ink);color:var(--paper)}
.home-page .video-play-mark{background:var(--accent);color:var(--paper);border-radius:10px}
.home-page .video-watch,.home-page .guide-tile a{color:var(--accent);font-size:13px;font-weight:700}
.home-page .ribbon{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 22px}
.home-page .ribbon p{font-size:13px;line-height:1.9}
.home-page .about-cta,.home-page .cta,.home-page .inquiry-submit,.signup-dialog .signup-submit{background:var(--accent);border:1px solid var(--accent);color:var(--paper);border-radius:10px;box-shadow:none;font-size:14px;font-weight:700;line-height:1.5}
.home-page .about-cta:hover,.home-page .cta:hover,.home-page .inquiry-submit:hover,.signup-dialog .signup-submit:hover{background:var(--hover);border-color:var(--hover);color:var(--paper)}
.home-page .about-cta,.home-page .cta{min-height:46px;padding:12px 20px}
.home-page .share-page-button{border-radius:10px;font-size:14px;font-weight:600}
.home-page .inquiry-field input,.home-page .inquiry-field textarea{background:var(--paper);border-color:var(--line);border-radius:10px}
:focus-visible{outline-color:var(--accent)}
@media(max-width:540px){
  .home-page .home-introduction{padding-block:28px}
  .home-about-copy p,.home-page .hero .intro{font-size:14px}
  .home-page .hero h1{font-size:clamp(32px,8vw,38px)}
  .home-page .card h3,.home-page .guide-tile h3{font-size:19px}
  .home-page .ribbon{padding:14px 16px}
  .home-page .ribbon p{font-size:12px}
  .home-page .trend-video h2{font-size:21px}
}
header .signup-open{background:var(--accent);border-color:var(--accent);color:var(--paper);font-family:inherit;font-weight:700}
header .signup-open:hover{background:var(--hover);border-color:var(--hover)}
header .login-open,header .logout-button,header .member-status{font-family:inherit;border-color:var(--line);color:var(--muted)}
/* Only the Korean tagline is lightened; the logo stays transparent. */
:root[data-theme="dark"] .site-logo{padding:0;background:transparent;border-radius:0}
:root[data-theme="dark"] .site-logo .logo-lighten{display:none}
:root[data-theme="dark"] .site-logo::after{content:"";position:absolute;inset:0;pointer-events:none;background:#fff;mask:url('/assets/logo-small.webp?v=20261009') left center/contain no-repeat;clip-path:inset(54% 5% 20% 45%)}

/* Use the same controls and panels throughout the menu pages. */
.board-page,.recipe-page,.about-page,.journal,.account-main{font-family:var(--home-font)}
.eyebrow,.journal .meta,.guide-tile small{color:var(--accent)}
.board-form,.board-comment,.recipe-panel,#recipe-editor,.partnership,.about,.guide-tile,.journal .note,.journal .worksheet,.journal-tool,.guide-questions{background:var(--home-card);border-color:var(--line);border-radius:var(--home-radius);box-shadow:none}
.board-page input,.board-page textarea,.recipe-page input,.recipe-page textarea,.recipe-page select,.inquiry-field input,.inquiry-field textarea,.account-main input{background:var(--paper);color:var(--ink);border-color:var(--line);border-radius:10px;font-family:inherit}
#board-write,#board-post-submit,#board-comment-submit,#board-edit-submit,#board-edit-open,#recipe-post-submit,#recipe-admin-open,#recipe-submit,#recipe-admin-submit,#industry-access-submit,.recipe-search button,.ingredient-search #ingredient-analyze,.ingredient-result .ingredient-recipe-link,.inquiry-submit,.journal-tool button,.print-guide,.auth-error-dialog #auth-error-close{background:var(--accent);border-color:var(--accent);color:var(--paper);border-radius:10px;box-shadow:none;font-family:inherit;font-weight:700}
.ingredient-result .ingredient-recipe-link:focus-visible{outline-color:var(--accent)}
.inquiry-submit:hover,.journal-tool button:hover,.print-guide:hover{background:var(--hover);border-color:var(--hover);color:var(--paper)}
.recipe-category{background:var(--surface);border-color:var(--line);color:var(--accent)}
.guide-tile h3{font-size:20px;font-weight:700;line-height:1.65;letter-spacing:-.035em}
.guide-tile a,.journal a{color:var(--accent)}

:root[data-theme="dark"] .site-logo::before{content:"";position:absolute;inset:0;pointer-events:none;background:#fff;mask:url('/assets/logo-small.webp?v=20261009') left center/contain no-repeat;clip-path:inset(30% 42% 45% 38%)}
/* Keep the illustration in color and make the complete wordmark white. */
:root[data-theme="dark"] header .site-logo::before{content:none}
:root[data-theme="dark"] header .site-logo::after{content:"";clip-path:inset(0 0 0 38%)}
:root[data-theme="dark"] header .site-logo .logo-base{filter:brightness(1.15);opacity:1}

/* Keep the wordmark mask and the visible image on the same aspect ratio. */
header .brand .site-logo .logo-base{max-width:calc(64px * 600 / 255);max-height:none;height:auto}
@media(max-width:800px){header .brand .site-logo .logo-base{max-width:calc(50px * 600 / 255)}}
@media(max-width:540px){header .brand .site-logo .logo-base{max-width:calc(46px * 600 / 255)}}
header.is-compact .brand .site-logo .logo-base{max-width:calc(48px * 600 / 255)}
@media(max-width:800px){header.is-compact .brand .site-logo .logo-base{max-width:calc(42px * 600 / 255)}}

/* Keep the menu identity beside the close button. */
.site-menu .menu-heading{justify-content:flex-end}
.site-menu .menu-heading .menu-account{flex:0 1 auto;margin-left:auto}
.site-menu .menu-heading .menu-account p{text-align:right}
/* Camera capture shares the uploaded-photo search flow. */
.ingredient-search #ingredient-camera-photo[hidden],.ingredient-search #ingredient-camera[hidden]{display:none}
#ingredient-camera-open{margin-top:12px}
#ingredient-camera-video{display:block;width:100%;max-width:480px;max-height:360px;object-fit:contain;margin:12px 0;border-radius:10px;background:#000}

/* Leave room around the native file button so its rounded edges stay visible. */
.recipe-page input[type="file"]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:auto;min-height:52px;padding:4px 2px;border:0;border-radius:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;line-height:1.5}
.recipe-page input[type="file"]::file-selector-button{box-sizing:border-box;min-height:44px;margin:0 10px 0 0;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;line-height:1.5;cursor:pointer}
.recipe-page input[type="file"]::file-selector-button:hover{border-color:var(--accent);background:var(--surface)}

/* Shared masthead sizing on every page and in every account state. */
body header .brand .site-logo.site-logo.site-logo{width:min(150px,32vw);max-width:100%;transition:width .2s ease}
body header .brand .site-logo.site-logo.site-logo img{width:100%;max-width:100%;max-height:none;height:auto}
body header.is-compact .brand .site-logo.site-logo.site-logo{width:min(112px,25vw)}
body header.is-compact{min-height:54px;padding:4px 0}
@media(max-width:800px){
  body header .brand .site-logo.site-logo.site-logo{width:min(117px,32vw)}
  body header.is-compact .brand .site-logo.site-logo.site-logo{width:min(98px,25vw)}
}
@media(max-width:540px){
  body header .brand .site-logo.site-logo.site-logo{width:min(108px,35vw)}
  body header.is-compact .brand .site-logo.site-logo.site-logo{width:min(90px,28vw)}
}
@media(prefers-reduced-motion:reduce){body header .brand .site-logo.site-logo.site-logo,body header .brand img{transition:none}}

.journal .home-about-copy h1{margin-top:0;font-size:clamp(25px,3vw,34px);line-height:1.45}
.journal .home-about-brand .about-label{align-self:flex-start;font-size:11px;letter-spacing:.16em}

.video-sort{display:flex;align-items:center;gap:22px;margin:12px 0 18px;border-bottom:1px solid var(--line)}.video-sort button{position:relative;padding:10px 0;min-height:44px;border:0;border-radius:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:color .2s ease}.video-sort button:hover,.video-sort button[aria-pressed="true"]{background:transparent;color:var(--accent)}.video-sort button[aria-pressed="true"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--accent)}.video-sort button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

:root[data-theme="dark"] footer .site-logo::before{content:none}
:root[data-theme="dark"] footer .site-logo::after{clip-path:inset(0 0 0 38%)}
:root[data-theme="dark"] footer .site-logo .logo-base{filter:brightness(1.15);opacity:1}

.trend-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.trend-editor-toolbar label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.trend-editor-toolbar input[type="color"]{width:36px;height:32px;padding:2px}.trend-editor-toolbar select{width:auto;padding:6px 8px}.trend-editor-toolbar button{min-height:36px;padding:6px 12px;font-weight:700}.trend-rich-editor{min-height:220px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.trend-rich-editor:focus{outline:2px solid var(--accent);outline-offset:2px}

@media(min-width:801px) and (max-width:1100px){body header{min-height:64px;padding:6px 0}body header .brand .site-logo.site-logo.site-logo{width:min(117px,32vw)}body header.is-compact{min-height:54px;padding:4px 0}body header.is-compact .brand .site-logo.site-logo.site-logo{width:min(98px,25vw)}}

.recipe-panel:has(>p[role="status"]:empty):not(:has(h2)){display:none}
