/*
Theme Name: Onuleun K-Food
Theme URI: https://onuleun-kfood.jp
Author: Onuleun K-Food
Description: A bright editorial theme for honest Korean food product reviews in Japan.
Version: 1.0.5
Text Domain: onuleun-kfood
*/

:root {
  --onul-ink: #20273b;
  --onul-ink-soft: #596078;
  --onul-cream: #fff9ec;
  --onul-paper: #fffdf7;
  --onul-red: #ef5d3e;
  --onul-red-dark: #cc3f28;
  --onul-yellow: #f8c44f;
  --onul-blue: #255ca8;
  --onul-mint: #9dccbd;
  --onul-line: #eadfc9;
  --onul-white: #fff;
  --onul-radius: 24px;
  --onul-shadow: 0 18px 50px rgba(39, 46, 68, .11);
  --onul-wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--onul-paper);
  color: var(--onul-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 10px 14px;
  clip: auto; background: var(--onul-ink); color: #fff; z-index: 9999;
}
.wrap { width: var(--onul-wrap); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 247, .92);
  border-bottom: 1px solid rgba(234, 223, 201, .75);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--onul-red); color: #fff; box-shadow: 4px 4px 0 var(--onul-yellow);
  font-size: 12px; font-weight: 900; letter-spacing: -.05em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; font-size: 20px; }
.brand-name small { margin-top: 5px; color: var(--onul-ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; font-size: 13px; font-weight: 800; }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 3px;
  border-radius: 99px; background: var(--onul-red); transition: right .2s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--onul-line); border-radius: 50%;
  background: #fff; color: var(--onul-ink); cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s ease;
}

/* Hero */
.hero { padding: 34px 0 38px; }
.hero-card {
  position: relative; min-height: 590px; overflow: hidden; border: 1px solid var(--onul-line);
  border-radius: 36px; background: #fbefd8; box-shadow: var(--onul-shadow);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,249,236,.98) 0%, rgba(255,249,236,.9) 36%, rgba(255,249,236,.08) 67%, transparent 100%); }
.hero-copy { position: relative; z-index: 2; width: min(530px, 52%); padding: 88px 0 68px 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  color: var(--onul-blue); font-size: 11px; font-weight: 900; letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 24px; height: 4px; border-radius: 99px; background: var(--onul-blue); }
.hero h1 { margin: 0; font-size: clamp(46px, 5.7vw, 76px); line-height: 1.08; letter-spacing: -.07em; }
.hero h1 em { color: var(--onul-red); font-family: Georgia, serif; font-style: italic; letter-spacing: -.04em; }
.hero-lead { max-width: 440px; margin: 24px 0 0; color: #4e5365; font-size: 16px; font-weight: 600; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px;
  border: 2px solid var(--onul-ink); border-radius: 999px; font-size: 13px; font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--onul-ink); color: #fff; box-shadow: 5px 5px 0 var(--onul-yellow); }
.button-secondary { background: rgba(255,255,255,.65); }
.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden;
  margin-top: 18px; border: 1px solid var(--onul-line); border-radius: 20px; background: var(--onul-line);
}
.trust-item { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px; background: var(--onul-paper); font-size: 12px; font-weight: 800; }
.trust-item b { color: var(--onul-red); font-size: 18px; }

/* Sections */
.section { padding: 86px 0; }
.section-soft { background: var(--onul-cream); border-block: 1px solid var(--onul-line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-kicker { margin: 0 0 7px; color: var(--onul-red); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; letter-spacing: -.055em; }
.section-note { max-width: 450px; margin: 0; color: var(--onul-ink-soft); font-size: 13px; }
.text-link { color: var(--onul-blue); font-size: 13px; font-weight: 900; white-space: nowrap; }
.text-link::after { content: " →"; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card {
  position: relative; min-height: 190px; padding: 24px 20px; overflow: hidden;
  border: 1px solid var(--onul-line); border-radius: var(--onul-radius); background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 16px 35px rgba(39,46,68,.1); }
.category-card:nth-child(2n) { background: #fff4d6; }
.category-card:nth-child(3n) { background: #edf6f2; }
.category-icon { display: block; margin-bottom: 24px; font-size: 40px; line-height: 1; }
.category-card h3 { margin: 0; font-size: 18px; letter-spacing: -.04em; }
.category-card p { margin: 7px 0 0; color: var(--onul-ink-soft); font-size: 11px; line-height: 1.55; }
.category-arrow { position: absolute; right: 18px; bottom: 16px; color: var(--onul-red); font-size: 20px; font-weight: 900; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  overflow: hidden; border: 1px solid var(--onul-line); border-radius: 26px; background: #fff;
  box-shadow: 0 10px 30px rgba(39,46,68,.06); transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--onul-shadow); }
.post-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #f8e7c9; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.035); }
.post-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg,#ffe6c0,#ffd3c9); font-size: 58px; }
.post-body { padding: 22px 22px 24px; }
.post-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: var(--onul-ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.post-badge { padding: 4px 9px; border-radius: 99px; background: var(--onul-red); color: #fff; }
.post-card h3 { margin: 0; font-size: 19px; line-height: 1.55; letter-spacing: -.035em; }
.post-card p { margin: 11px 0 0; color: var(--onul-ink-soft); font-size: 12px; line-height: 1.7; }
.empty-state { grid-column: 1 / -1; padding: 48px; border: 2px dashed #e8d5b8; border-radius: 28px; background: #fffaf0; text-align: center; }
.empty-state strong { display: block; margin-bottom: 8px; font-size: 22px; }

/* Review standard */
.standard-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.standard-intro { position: relative; }
.standard-stamp {
  width: 110px; height: 110px; display: grid; place-items: center; margin-bottom: 26px;
  border: 3px solid var(--onul-red); border-radius: 50%; color: var(--onul-red);
  font-size: 13px; font-weight: 900; text-align: center; transform: rotate(-7deg);
}
.standard-intro h2 { margin: 0; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.25; letter-spacing: -.06em; }
.standard-intro p { margin: 21px 0 0; color: var(--onul-ink-soft); }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.score-card { min-height: 170px; padding: 25px; border: 1px solid var(--onul-line); border-radius: 24px; background: #fff; }
.score-no { color: var(--onul-red); font-family: Georgia, serif; font-size: 34px; font-style: italic; }
.score-card h3 { margin: 8px 0 5px; font-size: 18px; }
.score-card p { margin: 0; color: var(--onul-ink-soft); font-size: 12px; }

/* Content */
.page-shell { padding: 66px 0 100px; }
.content-wrap { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.archive-header { margin-bottom: 38px; }
.archive-header h1, .entry-header h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.25; letter-spacing: -.055em; }
.entry-header { margin-bottom: 34px; }
.entry-header .post-meta { margin: 16px 0 0; }
.entry-content { font-size: 17px; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 { margin-top: 2.2em; padding: .65em .8em; border-left: 6px solid var(--onul-red); border-radius: 0 14px 14px 0; background: var(--onul-cream); font-size: 28px; }
.entry-content h3 { margin-top: 2em; padding-bottom: .35em; border-bottom: 2px solid var(--onul-yellow); font-size: 22px; }
.entry-content a { color: var(--onul-blue); text-decoration: underline; text-underline-offset: .2em; }
.entry-content img { border-radius: 20px; }
.entry-content blockquote { margin-inline: 0; padding: 18px 22px; border-left: 5px solid var(--onul-blue); background: #edf3fb; }
.entry-content .affiliate-note { padding: 12px 16px; border-radius: 12px; background: #fff3d6; color: #674b12; font-size: 14px; font-weight: 700; }
.entry-content .affiliate-buttons { margin-block: 2.2em 1em; }
.entry-content .affiliate-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 26px; border-radius: 999px; background: var(--onul-red); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 22px rgba(214, 49, 45, .22); transition: transform .2s ease, box-shadow .2s ease; }
.entry-content .affiliate-button .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(214, 49, 45, .28); }
.entry-content .article-note { color: var(--onul-muted); font-size: 13px; }
.onuleun-signoff { position: relative; overflow: hidden; margin-top: 3em; padding: 28px 30px; border: 2px solid var(--onul-yellow); border-radius: 22px; background: linear-gradient(135deg, #fff9e9, #fffdf7); text-align: center; }
.onuleun-signoff::after { position: absolute; right: -18px; bottom: -28px; color: rgba(239, 93, 62, .09); content: "맛"; font-size: 92px; font-weight: 900; line-height: 1; transform: rotate(-10deg); }
.onuleun-signoff__eyebrow { position: relative; z-index: 1; display: inline-block; margin-bottom: 9px; color: var(--onul-red-dark); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.onuleun-signoff__label { position: relative; z-index: 1; display: block; margin-top: 3px; color: var(--onul-ink-soft); font-size: 14px; font-weight: 800; }
.onuleun-signoff__food { position: relative; z-index: 1; display: block; margin: 9px 0 10px; color: var(--onul-ink); font-size: 20px; font-weight: 900; line-height: 1.55; }
.onuleun-signoff p { position: relative; z-index: 1; margin: 0; color: var(--onul-ink); font-size: 16px; font-weight: 750; line-height: 1.8; }
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-numbers { min-width: 42px; padding: 7px 12px; border: 1px solid var(--onul-line); border-radius: 10px; background: #fff; text-align: center; }
.page-numbers.current { background: var(--onul-ink); color: #fff; }

/* Footer */
.site-footer { padding: 58px 0 24px; background: var(--onul-ink); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; padding-bottom: 45px; }
.footer-brand .brand-mark { box-shadow: 4px 4px 0 var(--onul-blue); }
.footer-brand p { max-width: 440px; margin: 20px 0 0; color: #b8bfd2; font-size: 13px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer-nav a { color: #dce0ec; font-size: 12px; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #929aaf; font-size: 10px; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 77px 0 auto; padding: 28px 20px 34px; transform: translateY(-130%);
    background: var(--onul-paper); border-bottom: 1px solid var(--onul-line); transition: transform .25s ease;
  }
  .nav-open .primary-nav { transform: translateY(0); }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 13px 8px; font-size: 15px; }
  .hero-card { min-height: 700px; }
  .hero-art { object-position: 62% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,249,236,.98) 0%, rgba(255,249,236,.92) 45%, rgba(255,249,236,.04) 73%); }
  .hero-copy { width: 100%; padding: 58px 38px; }
  .hero-lead { max-width: 520px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .standard-wrap { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 620px) {
  :root { --onul-wrap: min(100% - 24px, 1180px); --onul-radius: 20px; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 17px; }
  .primary-nav { top: 69px; }
  .hero { padding: 16px 0 22px; }
  .hero-card { min-height: 690px; border-radius: 25px; }
  .hero-art { object-position: 66% bottom; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,249,236,.99) 0%, rgba(255,249,236,.9) 48%, rgba(255,249,236,.1) 70%); }
  .hero-copy { padding: 44px 24px; }
  .hero h1 { font-size: 43px; }
  .hero-lead { margin-top: 17px; font-size: 14px; }
  .hero-actions { margin-top: 23px; }
  .button { min-height: 48px; padding-inline: 18px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { justify-content: flex-start; padding: 12px 18px; }
  .section { padding: 64px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 26px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { min-height: 165px; padding: 20px 16px; }
  .category-icon { margin-bottom: 18px; font-size: 34px; }
  .category-card h3 { font-size: 16px; }
  .post-grid, .score-grid { grid-template-columns: 1fr; }
  .empty-state { padding: 36px 22px; }
  .page-shell { padding: 42px 0 72px; }
  .content-wrap { width: min(820px, calc(100% - 32px)); }
  .archive-header h1, .entry-header h1 { font-size: 29px; line-height: 1.38; letter-spacing: -.04em; }
  .entry-header { margin-bottom: 26px; }
  .entry-content { font-size: 16px; line-height: 1.85; }
  .entry-content h2 { font-size: 22px; }
  .entry-content h3 { font-size: 19px; }
  .entry-content .affiliate-note { font-size: 12px; }
  .entry-content .affiliate-button .wp-block-button__link { min-height: 50px; padding: 12px 20px; font-size: 15px; }
  .entry-content .article-note { font-size: 12px; line-height: 1.7; }
  .onuleun-signoff { margin-top: 2.5em; padding: 22px 18px; border-radius: 18px; }
  .onuleun-signoff__eyebrow { margin-bottom: 8px; font-size: 13px; }
  .onuleun-signoff__label { font-size: 13px; }
  .onuleun-signoff__food { margin-block: 8px; font-size: 17px; }
  .onuleun-signoff p { font-size: 15px; font-weight: 700; line-height: 1.75; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
}
