/* Ricefield site styles. Static, dependency-free, and separate from RiceCooker. */
:root {
  color-scheme: dark;
  --background: #101711;
  --surface: #19251c;
  --surface-raised: #203026;
  --text: #f2f5ef;
  --muted: #b5c7b5;
  --muted-soft: #8fa390;
  --border: #354b38;
  --accent: #b3dc88;
  --accent-hover: #c8ed9d;
  --accent-text: #172711;
  --header: #121c15;
  --visual-sky: #305c43;
  --visual-hill-1: #628b60;
  --visual-hill-2: #82a469;
  --visual-hill-3: #bec685;
  --shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f7f9f3;
  --surface: #fff;
  --surface-raised: #edf3e8;
  --text: #183021;
  --muted: #415f45;
  --muted-soft: #527058;
  --border: #d5e1d2;
  --accent: #275b34;
  --accent-hover: #1c4929;
  --accent-text: #fff;
  --header: #f2f6ef;
  --visual-sky: #8dc4a4;
  --visual-hill-1: #639969;
  --visual-hill-2: #86ad6e;
  --visual-hill-3: #c5ce8d;
  --shadow: 0 20px 60px rgba(29, 59, 31, .09);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --background: #f7f9f3;
    --surface: #fff;
    --surface-raised: #edf3e8;
    --text: #183021;
    --muted: #415f45;
    --muted-soft: #527058;
    --border: #d5e1d2;
    --accent: #275b34;
    --accent-hover: #1c4929;
    --accent-text: #fff;
    --header: #f2f6ef;
    --visual-sky: #8dc4a4;
    --visual-hill-1: #639969;
    --visual-hill-2: #86ad6e;
    --visual-hill-3: #c5ce8d;
    --shadow: 0 20px 60px rgba(29, 59, 31, .09);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; z-index: 20; top: -100px; left: 10px; padding: 10px 16px; background: var(--accent); color: var(--accent-text); border-radius: 8px; }
.skip-link:focus { top: 10px; }
.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: var(--header); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 78px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 15px 0; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 21px; font-weight: 790; letter-spacing: -.055em; }
.logo svg { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 590; color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }
.theme-toggle { min-height: 36px; padding: 6px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 13px; }
.theme-toggle:hover { background: var(--surface-raised); }

main { flex: 1; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 7vw, 100px); padding: 94px 0 100px; }
.eyebrow { display: inline-flex; padding: 7px 13px; border: 1px solid var(--border); border-radius: 100px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 710px; margin: 25px 0 23px; font-size: clamp(45px, 6.2vw, 77px); letter-spacing: -.068em; line-height: 1.08; font-weight: 790; }
h1 span { color: var(--accent); }
.hero-copy { max-width: 520px; font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 19px; border: 1px solid transparent; border-radius: 11px; background: var(--accent); color: var(--accent-text); font-size: 14px; font-weight: 730; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.button-secondary:hover { background: var(--surface-raised); }
.small-note { margin: 13px 0 0; color: var(--muted-soft); font-size: 13px; }

.landscape { position: relative; aspect-ratio: 1 / 1.04; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(ellipse at 75% 23%, #dff9b744, transparent 37%), linear-gradient(160deg, var(--visual-sky), #1c3729); box-shadow: var(--shadow); isolation: isolate; }
.landscape-sun { position: absolute; top: 17%; right: 18%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: #eff5c2; box-shadow: 0 0 70px #dbeab577; }
.landscape-hill { position: absolute; width: 155%; height: 100%; left: -30%; border-radius: 50% 50% 0 0; transform: rotate(-15deg); }
.landscape-hill-one { bottom: -69%; background: var(--visual-hill-1); }
.landscape-hill-two { bottom: -81%; left: -39%; background: var(--visual-hill-2); }
.landscape-hill-three { bottom: -97%; left: -46%; background: var(--visual-hill-3); }
.landscape-caption { position: absolute; z-index: 2; left: 23px; bottom: 16px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: #193121; }

.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; letter-spacing: -.045em; margin-bottom: 12px; }
.section-intro { max-width: 700px; color: var(--muted); margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.025em; margin: 10px 0 11px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.card-label { font-size: 11px; font-weight: 790; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-soft); }
.card a { display: inline-block; margin-top: 17px; font-size: 14px; font-weight: 720; text-underline-offset: 4px; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-raised); }
.callout h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin-bottom: 8px; }
.callout p { max-width: 620px; margin: 0; color: var(--muted); }
.callout .button { flex: none; }

.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 0; font-size: 13px; color: var(--muted-soft); }
.footer-inner p { margin: 0; }
.footer-inner a { text-underline-offset: 3px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding: 65px 0 76px; }
  .landscape { aspect-ratio: 1.5; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .header-inner { align-items: flex-start; }
  .site-nav { width: 100%; gap: 10px 18px; }
  .cards { grid-template-columns: 1fr; }
  .callout { align-items: flex-start; flex-direction: column; }
  .section { padding: 56px 0; }
  .hero { padding: 54px 0 60px; }
  .landscape { aspect-ratio: 1.15; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
