/* Layout concept: a tea field under shade cloth. A dark woven band opens each page,
   the open field below stays pale and celadon-tinted. */
:root {
  --field: #f2f9dc;        /* pale celadon page ground */
  --paper: #fbfdf3;        /* raised surfaces: form, spec */
  --ink: #1c3310;          /* pine ink */
  --ink-soft: #4c6339;     /* secondary text */
  --cloth: #47801a;        /* kanreisha shade-cloth band */
  --cloth-line: #4f8a20;   /* weave threads */
  --leaf: #47801a;         /* first-flush green, text-safe */
  --leaf-bright: #e3f58f;  /* powder green, on dark only */
  --rule: #bcd58e;
  --danger: #9b2c1f;

  --display: "Zen Old Mincho", "Gowun Batang", "Noto Serif CJK JP", Georgia, serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
html:lang(ko) { --display: "Gowun Batang", "Zen Old Mincho", "Apple SD Gothic Neo", serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--field); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
}
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) body { font-family: "Noto Sans JP", var(--body); overflow-wrap: anywhere; }
html:lang(ja) { --display: "Zen Old Mincho", "Noto Serif CJK JP", serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.band :focus-visible { outline-color: var(--leaf-bright); }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.2; text-wrap: balance; margin: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); font-weight: 600; margin: 0; }
html:lang(ko) .eyebrow { letter-spacing: .02em; }

/* ---- Masthead ---- */
.band {
  background-color: var(--cloth); color: #eef2ea;
  background-image:
    repeating-linear-gradient(0deg, var(--cloth-line) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, var(--cloth-line) 0 1px, transparent 1px 5px);
}
.band a { color: inherit; }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 16px; }
.wordmark { text-decoration: none; display: grid; line-height: 1.25; }
.wordmark b { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.wordmark small { font-size: .74rem; color: #eaf5c6; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: .92rem; }
.nav a { text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--leaf-bright); }
.lang-menu { position: relative; font-size: .9rem; }
.lang-menu summary { list-style: none; cursor: pointer; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 3px; color: #fff; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 130px; display: grid; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 8px 22px rgba(20, 40, 5, .22); overflow: hidden; }
.band .lang-list a, .hero .lang-list a { color: var(--ink); text-decoration: none; padding: 9px 14px; }
.band .lang-list a:hover, .hero .lang-list a:hover { background: #dff0b8; color: var(--ink); }
.lang-list a[aria-current] { font-weight: 600; background: #eef7d3; }

/* ---- Hero: full-width field photo, statement on the left ---- */
.hero { position: relative; display: grid; align-items: center; min-height: 100vh; min-height: 100svh; color: #fff; background: #2f5a0e; overflow: hidden; }
.hero-lang { position: absolute; z-index: 3; top: max(18px, env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); }
.hero .lang-menu summary { background: rgba(38, 74, 10, .45); }
.hero-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fff; text-decoration: none; font-size: 1.6rem; line-height: 1; padding: 8px 12px; }
.hero-cue:hover { color: var(--leaf-bright); }
/* Home: no header over the video. It slides in once the hero has scrolled away. */
.js .home .masthead { position: fixed; z-index: 20; top: 0; left: 0; right: 0; transform: translateY(-100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.js .home .masthead.show { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .js .home .masthead { transition: none; } }
section[id] { scroll-margin-top: 76px; }
.hero > img, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .hero > video.clip { opacity: 0; transition: opacity .7s ease; }
.js .hero > video.clip.on { opacity: 1; }
.hero > video.clip:not(.clip-1) { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38, 74, 10, .86) 0%, rgba(38, 74, 10, .55) 36%, rgba(38, 74, 10, 0) 62%); }
.hero-text { position: relative; z-index: 1; display: grid; gap: 18px; padding-block: 56px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.08; max-width: 9em; text-shadow: 0 1px 12px rgba(20, 40, 5, .45); }
.hero .origin { color: var(--leaf-bright); font-weight: 600; font-size: 1.05rem; margin: 0; letter-spacing: .04em; }
.hero p.lede { margin: 0; color: #fff; max-width: 30em; text-shadow: 0 1px 8px rgba(20, 40, 5, .5); }
.hero .actions a { color: inherit; }
.hero .btn-ghost { background: transparent; }

/* ---- Task shortcuts ---- */
.want { background: var(--cloth); color: #fff; }
.want .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-block: 14px; }
.want p { margin: 0; font-weight: 600; color: var(--leaf-bright); }
.want nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.want a { color: #fff; font-size: .95rem; }
.want a:hover { color: var(--leaf-bright); }

/* ---- Grades ---- */
.grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grade { background: var(--paper); border-top: 4px solid var(--leaf); padding: 22px; display: grid; gap: 10px; align-content: start; }
.grade h3 { font-size: 1.3rem; color: #2f5a0e; }
.grade p { margin: 0; color: var(--ink-soft); }
.grade a { font-weight: 600; font-size: .92rem; color: #2f5a0e; }

/* ---- Closing band ---- */
.ready .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 44px; }
.ready .wrap > div:first-child { flex: 1 1 340px; display: grid; gap: 8px; }
.ready h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ready p { margin: 0; }
.ready .btn-ghost { background: transparent; }
.channels.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 2px; font: inherit; font-weight: 600; font-size: .96rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--leaf-bright); color: var(--ink) !important; }
.btn-primary:hover { background: #f1fbbd; }
.btn-ghost { border-color: #fff; color: inherit; background: var(--cloth); }
.btn-ghost:hover { border-color: var(--leaf-bright); color: var(--leaf-bright); }
.btn-solid { background: var(--ink); color: var(--field) !important; }
.btn-solid:hover { background: var(--leaf); }

/* ---- Shade-to-powder strip ---- */
.strip { border-bottom: 1px solid var(--rule); }
.strip ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip li { padding: 26px 22px 26px 0; display: grid; gap: 2px; align-content: start; }
.strip li + li { border-left: 1px solid var(--rule); padding-left: 22px; }
.strip .value { color: var(--leaf); font-family: var(--display); font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.strip .label { font-weight: 600; font-size: .92rem; }
.strip .note { font-size: .85rem; color: var(--ink-soft); }
.strip-foot { font-size: .8rem; color: var(--ink-soft); margin: 0; padding-block: 10px 14px; }

/* ---- Sections ---- */
.section { padding-block: 64px; }
.section-head { display: grid; gap: 8px; margin-bottom: 30px; max-width: 44em; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p:not(.eyebrow) { margin: 0; color: var(--ink-soft); }

/* ---- Journal list ---- */
.posts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; }
.post-card { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; grid-column: span 4; }
.post-card:first-child { grid-column: span 12; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card h3 { font-size: 1.32rem; }
.post-card:first-child h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.post-card:hover h3 { color: var(--leaf); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.post-card .text { display: grid; gap: 8px; min-width: 0; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.post-card time { font-size: .82rem; color: var(--ink-soft); }

/* ---- Product ---- */
.product { background: #dff0b8; border-block: 1px solid var(--rule); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.product figure { margin: 0; }
.spec { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.spec th { font-weight: 600; width: 34%; padding-right: 16px; }
.spec td.ask { color: var(--ink-soft); }
.product .actions { margin-top: 26px; }
figcaption { font-size: .78rem; color: var(--ink-soft); padding-top: 8px; }
figcaption a { color: inherit; }

/* ---- Distribution note ---- */
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.channels > div { display: grid; gap: 6px; align-content: start; }
.channels h3 { font-size: 1.25rem; }
.channels p { margin: 0; color: var(--ink-soft); }

/* ---- Article ---- */
.article-head { padding-block: 48px; }
.article-head .wrap { display: grid; gap: 14px; }
.article-head h1 { max-width: 860px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.article-head time { font-size: .88rem; color: #f2f8df; }
.article-head .eyebrow { color: var(--leaf-bright); }
.article > * { max-width: 820px; }
.article figure { margin: 36px 0; }
.article .lead-fig { margin-top: 36px; }
.article .prose { max-width: 40em; }
.prose h2 { font-size: 1.55rem; margin: 38px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 7px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.callout { background: var(--paper); border: 1px solid var(--rule); padding: 18px 22px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.sources { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .86rem; color: var(--ink-soft); }
.sources h2 { font-family: var(--body); font-size: .86rem; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.sources ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.post-cta { background: var(--paper); border: 1px solid var(--rule); padding: 26px; margin-top: 40px; display: grid; gap: 14px; }
.post-cta h2 { font-size: 1.35rem; margin: 0; }
.post-cta p { margin: 0; color: var(--ink-soft); }

/* ---- Form ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.contact-side { display: grid; gap: 22px; }
.contact-side h2 { font-size: 1.2rem; margin-bottom: 4px; }
.contact-side p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
form.inquiry { background: var(--paper); border: 1px solid var(--rule); padding: 28px; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 5px; min-width: 0; }
.field.full, fieldset.full, .form-actions, .form-status { grid-column: 1 / -1; }
.field label, fieldset legend { font-weight: 600; font-size: .9rem; }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #9eac9f; border-radius: 2px; padding: 10px 12px;
}
textarea { min-height: 112px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.type-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.type-choice label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; border: 1px solid #9eac9f; padding: 12px 14px; cursor: pointer; background: #fff; border-radius: 2px; font-weight: 600; }
.type-choice label small { grid-column: 2; font-weight: 400; color: var(--ink-soft); font-size: .84rem; line-height: 1.4; }
.type-choice label:has(input:checked) { border-color: var(--leaf); box-shadow: inset 0 0 0 1px var(--leaf); }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: 0; flex: 1 1 240px; }
.form-status { margin: 0; padding: 12px 14px; font-size: .94rem; border: 1px solid var(--rule); background: #fff; }
.form-status.error { border-color: var(--danger); color: var(--danger); }
.form-status.ok { border-color: var(--leaf); color: var(--leaf); }

.policy { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.policy > div { background: #dff0b8; padding: 12px 14px; border-radius: 3px; font-size: .92rem; }
.policy b { display: block; color: #2f5a0e; }

/* ---- Credits ---- */
.table-scroll { overflow-x: auto; }
.credits { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 620px; }
.credits th, .credits td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

/* ---- Footer ---- */
.footer { padding-block: 36px; font-size: .88rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.footer p { margin: 0; color: #f2f8df; }
.footer b { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: #eef2ea; }
.footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero > video.clip-1 { object-position: 42% center; }
  .hero > video.clip-2 { object-position: 50% center; }
  .hero > video.clip-3 { object-position: 62% center; }
  .masthead .wrap { padding-block: 10px; gap: 6px 12px; }
  .wordmark { flex: 1 1 auto; }
  .wordmark small { display: none; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; font-size: .88rem; gap: 16px; }
  .hero::after { background: linear-gradient(180deg, rgba(38, 74, 10, .78), rgba(38, 74, 10, .45)); }
  .grades, .channels.three { grid-template-columns: minmax(0, 1fr); }
  .strip ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .section { padding-block: 44px; }
  .post-card, .post-card:first-child { grid-column: span 12; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-grid, .contact-grid, .channels { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product figure img { max-height: 320px; width: 100%; object-fit: cover; }
  form.inquiry { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .type-choice, .policy { grid-template-columns: minmax(0, 1fr); }
}
