/* Daily report: one motif (a paddy leaf, two opposite corners rounded) runs the page. */
:root {
  --bg: #e4e8d3;          /* morning paddy mist */
  --ink: #1d2216;
  --muted: #3b4530;
  --accent: #2c3620;      /* deep paddy olive */
  --accent-ink: #f1f3ea;
  --sun: #f1cf5a;         /* morning sun on the leaf */
  --field-sage: #c3d0b2;
  --field-straw: #e6d6b8;
  --field-sun: #f1cf5a;
  --field-olive: #2c3620;

  --step-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 1rem + 8.4vw, 8.5rem);

  --margin: clamp(20px, 4vw, 56px);
  --leaf: 0 1.1em 0 1.1em;           /* small leaf corners for controls */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 240ms;
  --t-slow: 700ms;

  font-family: "Pilcrow Rounded", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-size: var(--step-body); line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.ask :focus-visible, .hero :focus-visible { outline-color: var(--accent-ink); }
html { scrollbar-color: var(--accent) var(--bg); }

.skip { position: absolute; left: var(--margin); top: -100px; z-index: 10; background: var(--sun); color: var(--ink); padding: 12px 18px; border-radius: var(--leaf); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }

/* ---------- buttons: one shape, the leaf ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--leaf); font-weight: 700; text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); background: #3b4a2a; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--field-olive); color: var(--accent-ink);
  display: grid; grid-template-rows: auto auto 1fr;
}
.hero-leaf {
  position: absolute; width: 118vh; height: 118vh; right: -58vh; top: -40vh;
  background: var(--sun); border-radius: 0 50% 0 50%;
  transform-origin: 30% 70%;
  animation: sway 14s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(3deg) scale(1.03); } }

.bar {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--margin);
}
.mark { font-weight: 700; font-size: var(--step-small); letter-spacing: -0.01em; }
.lang {
  min-height: 44px; padding: 0 18px; border-radius: var(--leaf);
  background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: var(--step-small);
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast);
}
.lang:hover { background: #3b4a2a; transform: translateY(-1px); }
.lang:active { transform: scale(0.97); }

.hero-text { position: relative; padding: clamp(48px, 9vh, 110px) var(--margin) 0; max-width: 62vw; }
.hero h1 { font-size: var(--step-display); line-height: 0.9; }
.hero-sub { margin-top: 36px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }

.folders { position: relative; align-self: end; margin-top: 56px; height: clamp(250px, 40vh, 380px); }
.folder {
  position: absolute; left: var(--margin); right: var(--margin); bottom: 0;
  border-radius: 0 28px 0 0;
  animation: rise var(--t-slow) var(--ease-out) both;
}
.folder.f1 { top: 0;      background: var(--field-straw); color: var(--ink); animation-delay: 80ms; }
.folder.f2 { top: 64px;   background: var(--field-sage);  color: var(--ink); animation-delay: 160ms; }
.folder.f3 { top: 128px;  background: var(--bg);          color: var(--ink); animation-delay: 240ms; }
.folder.f4 { top: 192px;  background: var(--field-sun);   color: var(--ink); animation-delay: 320ms; padding: 32px; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.tab {
  position: absolute; bottom: 100%; height: 44px; padding: 0 22px;
  display: flex; align-items: center; font-size: var(--step-body); font-weight: 500; text-decoration: none;
  background: inherit; border-radius: 0 18px 0 0;
  transition: transform var(--t-fast) var(--ease-out);
}
.tab:hover { transform: translateY(-4px); }
.folder-pic {
  position: absolute; right: 32px; top: 32px; width: min(46%, 560px); height: calc(100% + 40px);
  object-fit: cover; border-radius: 0 64px 0 0;
}
.f1 .tab { left: 0; }
.f2 .tab { left: 24%; }
.f3 .tab { left: 48%; }
.f4 .tab { left: 72%; }

/* ---------- intro statement ---------- */
.intro { padding: clamp(110px, 18vh, 200px) var(--margin); max-width: 1180px; margin: 0 auto; }
.intro h2 { font-size: var(--step-head); margin-bottom: 40px; }
.statement { font-size: var(--step-statement); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; max-width: 38ch; }
.thumb {
  display: inline-block; width: 1.5em; height: 0.92em; margin: 0 0.12em; vertical-align: -0.1em;
  border-radius: 0 0.5em 0 0.5em; overflow: hidden; background: var(--field-sage);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- plate: square photo + tabbed work streams ---------- */
.plate {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  min-height: 88svh; padding: clamp(64px, 10vh, 120px) var(--margin);
  background: var(--field-sage); align-items: center;
}
.plate-pic { aspect-ratio: 1; overflow: hidden; border-radius: 0 50% 0 50%; background: var(--bg); }
.plate-pic img {
  width: 100%; height: 100%; object-fit: cover;
  animation: drift 22s ease-in-out infinite alternate;
  transition: opacity var(--t-med) var(--ease-out);
}
.plate-pic img.is-swapping { opacity: 0; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, 1%); } }

.plate-side { display: flex; flex-direction: column; gap: 56px; justify-content: space-between; align-self: stretch; padding: 24px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs [role="tab"] {
  min-height: 48px; padding: 0 20px; border-radius: var(--leaf);
  font-size: var(--step-body); font-weight: 500; color: var(--muted);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.tabs [role="tab"]:hover { background: #d3dec6; color: var(--ink); }
.tabs [role="tab"]:active { transform: scale(0.97); }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

.plate-body { transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
.plate-body.is-swapping { opacity: 0; transform: translateY(10px); }
.plate-body h2 { font-size: var(--step-head); }
.plate-body p { margin-top: 32px; max-width: 38ch; }

.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell { min-height: 72px; display: flex; align-items: center; padding: 0 24px; font-weight: 700; text-decoration: none; }
.cell-status { background: var(--bg); color: var(--ink); border-radius: 0 0 0 28px; }
.cell-status::before { content: ""; width: 0.75em; height: 0.75em; margin-right: 12px; background: var(--accent); border-radius: 0 0.6em 0 0.6em; flex: none; }
.cell-status.is-wip::before { background: #b88a12; }
.cell-link { background: var(--accent); color: var(--accent-ink); border-radius: 0 28px 0 0; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.cell-link:hover { background: #3b4a2a; }
.cell-link:active { transform: scale(0.98); }

/* ---------- menu: the day's log ---------- */
.menu { padding: clamp(40px, 6vh, 80px) var(--margin) clamp(110px, 16vh, 200px); max-width: 1320px; margin: 0 auto; }
.cat { padding-top: 96px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.cat-head h3 { font-size: var(--step-head); }
.count { font-size: var(--step-body); color: var(--muted); }
.items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 36px; }
.items li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.items img { width: 64px; height: 64px; object-fit: cover; border-radius: 0 32px 0 32px; }
.name { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: var(--step-body); }
.name b { font-weight: 700; }
.st { flex: none; font-size: var(--step-small); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.st::before { content: ""; width: 0.7em; height: 0.7em; border-radius: 0 0.5em 0 0.5em; background: var(--accent); }
.st.wip { color: #6b4f05; }
.st.wip::before { background: #b88a12; }
.desc { margin-top: 6px; max-width: 42ch; color: var(--muted); }

/* ---------- next: index with preview ---------- */
.next {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(110px, 16vh, 200px) var(--margin); background: var(--field-straw);
}
.next h2 { font-size: var(--step-head); margin-bottom: 48px; }
.rows { counter-reset: none; }
.row { padding: 6px 0; }
.row + .row { margin-top: 10px; }
.row-btn {
  display: block; width: 100%; text-align: left; min-height: 56px;
  transition: transform var(--t-fast) var(--ease-out);
}
.row-title {
  font-size: var(--step-statement); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--muted); transition: color var(--t-med) var(--ease-out);
  display: inline-flex; align-items: center; gap: 0.35em;
}
.row-title::before {
  content: ""; width: 0.5em; height: 0.5em; flex: none; border-radius: 0 0.36em 0 0.36em; background: var(--accent);
  transform: scale(0.4); opacity: 0; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
}
.row.is-on .row-title { color: var(--ink); }
.row.is-on .row-title::before { transform: none; opacity: 1; }
.row-btn:hover { transform: translateX(6px); }
.row-desc { max-width: 40ch; margin-top: 8px; color: var(--ink); }
.row-pic { display: none; }
.preview { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0 50% 0 50%; background: var(--bg); }
.preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-med) var(--ease-out); }
.preview img.is-swapping { opacity: 0; }

/* ---------- ask band ---------- */
.ask {
  min-height: 62svh; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  background: var(--field-olive); color: var(--accent-ink);
  padding: 40px var(--margin) 24px; border-radius: 0 120px 0 0; margin-top: -1px;
  overflow: hidden;
}
.ask { position: relative; }
.ask-pic {
  position: absolute; right: var(--margin); top: 40px; width: min(40%, 520px); aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 0 50% 0 50%;
}
.ask-pic img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-in-out infinite alternate; }
.ask-note { max-width: 44ch; font-size: var(--step-lead); line-height: 1.4; }
.ask-word { font-size: clamp(5.5rem, 24vw, 22rem); line-height: 0.8; letter-spacing: -0.04em; color: var(--sun); white-space: nowrap; }
html[lang="en"] .ask-word { font-size: clamp(4rem, 17vw, 16rem); }

/* ---------- footer: the leaf-block mark ---------- */
.foot { background: var(--bg); padding: 64px var(--margin) 40px; }
.blocks { display: flex; gap: 4px; align-items: flex-end; height: clamp(150px, 30svh, 300px); }
.b {
  display: flex; align-items: flex-end; padding: 0 0.12em 0.06em;
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.8; font-size: var(--step-display);
  color: var(--ink); overflow: hidden;
}
.b1 { background: var(--field-sage);  height: 74%; flex: 1.25; }
.b2 { background: var(--field-straw); height: 100%; flex: 1.15; }
.b3 { background: var(--field-sun);   height: 62%; flex: 1; border-radius: 0 0.6em 0 0; }
.b4 { background: var(--accent); height: 88%; flex: 0.42; border-radius: 0 100% 0 100%; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; margin-top: 56px; align-items: start; font-size: var(--step-small); color: var(--muted); }

/* ---------- reveal (only hides when JS runs) ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .hero-text { max-width: none; }
  .hero-leaf { width: 380px; height: 380px; right: -150px; top: -200px; }
  .plate { grid-template-columns: 1fr; min-height: 0; }
  .plate-pic { max-width: 560px; }
  .items { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; }
  .preview { display: none; }
  .row-pic { display: block; margin-top: 16px; width: 100%; max-width: 520px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0 40px 0 40px; }
  .row-btn:hover { transform: none; }
  .row .row-title { color: var(--ink); }
  .row .row-title::before { transform: none; opacity: 1; }
  .row + .row { margin-top: 40px; }
  .foot-cols { grid-template-columns: 1fr; gap: 16px; }
  .ask-pic { position: static; width: 100%; max-width: 520px; }
  .folder-pic { width: 44%; }
  .foot-cols .btn { justify-self: start; }
}

/* ---------- phone ---------- */
@media (max-width: 560px) {
  :root { --margin: 20px; }
  .hero { min-height: 0; }
  .hero-leaf { width: 300px; height: 300px; right: -150px; top: -170px; }
  .hero-text { padding-top: 64px; }
  .hero h1 { font-size: 16vw; }
  .hero-sub { font-size: 1.125rem; margin-top: 24px; }
  .folders { height: 420px; margin-top: 64px; }
  .folder-pic { position: static; width: 100%; height: 150px; margin-top: 16px; border-radius: 0 40px 0 0; }
  .folder { left: 0; right: 0; }
  .folder.f2 { top: 52px; } .folder.f3 { top: 104px; } .folder.f4 { top: 156px; padding: 24px 20px; }
  .tab { height: 36px; padding: 0 14px; font-size: 0.9375rem; }
  .f1 .tab { left: 20px; } .f2 .tab { left: auto; right: 20px; } .f3 .tab { left: 20px; } .f4 .tab { left: auto; right: 20px; }
  .f4 .btn { width: 100%; justify-content: center; }
  .intro { padding: 96px var(--margin); }
  .statement { font-size: 1.5rem; }
  .statement .thumb:last-child { display: none; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .items li { grid-template-columns: 52px 1fr; gap: 16px; }
  .items img { width: 52px; height: 52px; }
  .name { flex-direction: column; gap: 2px; }
  .ask { border-radius: 0 64px 0 0; min-height: 46svh; }
  .ask-note { font-size: 1.125rem; }
  .blocks { height: 22svh; min-height: 120px; }
  .b { font-size: 10.4vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
