/* PlantWriter site: grey and green. Concrete grey for the page, charcoal for type and the dark bands, one loud green.
   Headings lean forward and labels are cut on a slant; nothing glows and nothing is rounded more than a hair.
   Pretendard for text, Sora for figures. */
@import url('fonts/pretendard.css');

:root {
  color-scheme: light;
  --bg: #d6d9d5;
  --bg2: #c8ccc7;
  --panel: #e4e6e2;
  --line: #a9afa8;
  --line2: #1a1d1b;
  --ink: #151816;
  --soft: #363c37;
  --mute: #566058;
  --green: #1fdb6e;
  --green-ink: #06592e;
  --char: #1a1d1b;
  --on-char: #e9ebe7;
  --text: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --num: 'Sora', 'Pretendard Variable', Pretendard, sans-serif;
  --pad: clamp(18px, 4.5vw, 56px);
  --max: 1200px;
  /* names the request page's own styles use */
  --blue: var(--green);
  --blue-hi: var(--green-ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.7; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ------------------------------------------------ menu */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 3px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 10px 28px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.brand { font-family: var(--num); font-weight: 700; font-style: italic; font-size: 21px; letter-spacing: -0.04em; text-decoration: none; margin-right: auto; }
.brand small { font-family: var(--text); font-style: normal; font-weight: 600; font-size: 12.5px; letter-spacing: 0; color: var(--mute); margin-left: 10px; }
.menu { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: none; padding: 7px 13px; font-size: 15px; font-weight: 650; color: var(--soft); text-decoration: none; white-space: nowrap; transform: skewX(-10deg); transition: background 0.12s, color 0.12s; }
.menu a:hover { background: var(--bg2); color: var(--ink); }
.menu a.on { background: var(--green); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; background: var(--green); color: var(--ink); font-weight: 800; font-style: italic; font-size: 16.5px; letter-spacing: -0.02em; text-decoration: none; border: 2px solid var(--ink); border-radius: 2px; cursor: pointer; font-family: inherit; transform: skewX(-8deg); transition: background 0.12s, color 0.12s; }
.btn:hover { background: var(--ink); color: var(--green); }
.btn.sm { padding: 8px 16px; font-size: 14.5px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ------------------------------------------------ opening */
.hero { padding: clamp(40px, 8vw, 96px) 0 0; }
.kicker { display: inline-block; padding: 5px 14px; background: var(--ink); color: var(--green); font-weight: 800; font-style: italic; font-size: 14px; letter-spacing: 0.02em; transform: skewX(-10deg); }
.hero h1 { margin-top: 22px; font-size: clamp(46px, 9.4vw, 128px); font-weight: 900; font-style: italic; line-height: 1.02; letter-spacing: -0.055em; }
.hero h1 em { font-style: italic; background: var(--green); padding: 0 0.12em; margin-left: -0.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lede { margin-top: 28px; max-width: 34em; font-size: clamp(18px, 2vw, 22px); line-height: 1.65; color: var(--soft); }
.hero .lede b { color: var(--ink); font-weight: 750; }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 18px; padding-left: 6px; }
.shot { margin-top: clamp(40px, 6vw, 68px); border: 3px solid var(--ink); background: var(--char); width: 100%; }
.cap { margin-top: 12px; font-size: 14px; color: var(--mute); }
.chain { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--char); }
.chain a { display: block; padding: 18px 16px; text-decoration: none; color: var(--on-char); border-left: 1px solid #3a403b; transition: background 0.12s, color 0.12s; }
.chain a:first-child { border-left: 0; }
.chain a:hover { background: var(--green); color: var(--ink); }
.chain i { display: block; font-family: var(--num); font-size: 13px; font-weight: 700; font-style: italic; color: var(--green); }
.chain a:hover i { color: var(--ink); }
.chain span { display: block; margin-top: 2px; font-size: 16.5px; font-weight: 750; }

/* ------------------------------------------------ sections */
main { counter-reset: sec; }
section.block { padding: clamp(64px, 10vw, 128px) 0 0; counter-increment: sec; }
.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 46em; }
.head::before { content: counter(sec, decimal-leading-zero); justify-self: start; padding: 2px 12px; background: var(--green); font-family: var(--num); font-size: 15px; font-weight: 700; font-style: italic; transform: skewX(-10deg); }
.head h2 { font-size: clamp(32px, 5.2vw, 64px); font-weight: 900; font-style: italic; line-height: 1.1; letter-spacing: -0.05em; }
.head p { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--soft); }
.body { margin-top: clamp(28px, 4vw, 48px); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.stats div { padding: 24px 20px 22px 22px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-family: var(--num); font-size: clamp(36px, 5vw, 66px); font-weight: 700; font-style: italic; line-height: 1.05; letter-spacing: -0.05em; }
.stats b small { font-family: var(--text); font-size: 0.36em; font-weight: 800; letter-spacing: -0.02em; margin-left: 6px; color: var(--green-ink); }
.stats span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--mute); }

.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 80px); align-items: start; }
.prose { display: grid; gap: 16px; color: var(--soft); }
.prose p:first-child { color: var(--ink); font-size: clamp(19px, 2vw, 23px); line-height: 1.6; font-weight: 750; letter-spacing: -0.02em; }
dl.spec { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); border-top: 3px solid var(--ink); }
dl.spec dt, dl.spec dd { padding: 13px 0; border-bottom: 1px solid var(--line); }
dl.spec dt { font-size: 14px; font-weight: 800; color: var(--green-ink); padding-right: 16px; }
dl.spec dd { font-weight: 700; }
dl.spec dd small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--mute); line-height: 1.55; }
.fig { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* the five steps: text and picture side by side, sides alternating */
.steps { list-style: none; padding: 0; display: grid; gap: clamp(48px, 7vw, 96px); }
.steps > li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px clamp(28px, 5vw, 64px); align-items: center; }
.steps > li:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.steps > li:nth-child(even) .txt { order: 2; }
.steps .no { display: inline-block; font-family: var(--num); font-size: clamp(44px, 6vw, 76px); font-weight: 700; font-style: italic; line-height: 1; letter-spacing: -0.05em; color: var(--bg); -webkit-text-stroke: 2px var(--ink); }
.steps h3 { margin-top: 12px; font-size: clamp(24px, 3vw, 36px); font-weight: 900; font-style: italic; line-height: 1.2; letter-spacing: -0.04em; }
.steps p { margin-top: 14px; color: var(--soft); }
.steps code, .quote { font-family: inherit; font-size: 0.94em; font-weight: 750; color: var(--ink); background: var(--green); padding: 1px 8px; white-space: nowrap; }
.steps figure img, .steps figure video { border: 3px solid var(--ink); background: var(--char); width: 100%; }
figcaption { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--mute); }

/* rows of a name and what it means */
.rows { border-top: 3px solid var(--ink); }
.rows > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 20px; font-weight: 850; font-style: italic; letter-spacing: -0.03em; line-height: 1.4; }
.rows h3 small { display: table; margin-bottom: 6px; padding: 1px 9px; background: var(--ink); color: var(--green); font-size: 12.5px; font-weight: 800; letter-spacing: 0; transform: skewX(-10deg); }
.rows p { color: var(--soft); }

/* station tables */
.tblhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 44px 0 12px; }
.tblhead:first-child { margin-top: 0; }
.tblhead h3 { font-size: 23px; font-weight: 900; font-style: italic; letter-spacing: -0.04em; }
.tblhead span { font-size: 14.5px; color: var(--mute); }
.scroll { overflow-x: auto; border: 3px solid var(--ink); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.wide { min-width: 660px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 13px; font-weight: 750; color: var(--on-char); background: var(--char); white-space: nowrap; border-bottom: 0; }
tbody th { font-weight: 750; min-width: 8em; }
td.num, th.num { font-family: var(--num); font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--soft); }
th.num { color: var(--ink); font-weight: 700; }
td.say { color: var(--mute); font-size: 14.5px; min-width: 12em; }
.code { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--c); color: #101311; font-family: var(--num); font-size: 13px; font-weight: 700; }
.after { margin-top: 20px; color: var(--soft); max-width: 52em; }
.note { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 40px; align-items: center; padding: clamp(22px, 3vw, 40px); background: var(--green); }
.note h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; font-style: italic; letter-spacing: -0.04em; line-height: 1.2; }
.note p { margin-top: 12px; color: #0d2a19; }
.note .big { font-family: var(--num); font-weight: 700; font-style: italic; font-size: 1.5em; color: var(--ink); }
.note img { border: 3px solid var(--ink); }
.note figcaption { color: #0d2a19; }

.gallery { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.gallery img { border: 2px solid var(--ink); aspect-ratio: 900 / 446; object-fit: cover; width: 100%; }

/* how it starts, and where to write */
.three { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); counter-reset: n; }
.three li { counter-increment: n; padding: 24px 26px 6px 26px; border-left: 1px solid var(--line); }
.three li:first-child { border-left: 0; padding-left: 0; }
.three li::before { content: '0' counter(n); font-family: var(--num); font-size: 34px; font-weight: 700; font-style: italic; line-height: 1; letter-spacing: -0.04em; color: var(--green-ink); }
.three h3 { margin-top: 8px; font-size: 23px; font-weight: 900; font-style: italic; letter-spacing: -0.04em; }
.three p { margin-top: 8px; color: var(--soft); font-size: 16px; }
.cta { margin-top: clamp(56px, 8vw, 96px); padding: clamp(32px, 6vw, 72px); background: var(--char); color: var(--on-char); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: end; }
.cta h2 { font-size: clamp(32px, 5.6vw, 72px); font-weight: 900; font-style: italic; line-height: 1.06; letter-spacing: -0.055em; color: var(--green); }
.cta p { margin-top: 16px; color: #c3c9c3; max-width: 30em; }
.cta .btn { border-color: var(--green); font-size: 19px; padding: 16px 34px; }
.cta .btn:hover { background: var(--on-char); color: var(--ink); }
.who { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 15px; color: var(--soft); font-weight: 600; }
.who b { display: block; font-size: 12.5px; font-weight: 800; color: var(--green-ink); }
.who a { color: var(--ink); text-underline-offset: 3px; }
.fine { margin: clamp(48px, 7vw, 88px) 0 0; padding: 22px 0 48px; border-top: 3px solid var(--ink); font-size: 13.5px; line-height: 1.65; color: var(--mute); }

@media (max-width: 900px) {
  .nav .wrap { min-height: 0; }
  .menu { order: 3; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); width: calc(100% + 2 * var(--pad)); }
  .brand small { display: none; }
  html { scroll-padding-top: 112px; }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chain a:nth-child(4) { border-left: 0; }
  .chain a:nth-child(n + 4) { border-top: 1px solid #3a403b; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .two, .note, .cta { grid-template-columns: minmax(0, 1fr); }
  .steps > li, .steps > li:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .steps > li:nth-child(even) .txt { order: 0; }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three { grid-template-columns: minmax(0, 1fr); }
  .three li { border-left: 0; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
  .cta { align-items: start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  dl.spec { grid-template-columns: minmax(0, 1fr); }
  dl.spec dt { padding-bottom: 0; border-bottom: 0; }
  dl.spec dd { padding-top: 2px; }
  .actions .btn { width: calc(100% - 12px); justify-content: center; }
}
