/* Garden workbench — reuses the original September illustration collection. */
:root {
  --paper: #fbf8f1;
  --surface: #fffdf8;
  --ink: #343b32;
  --muted: #727668;
  --accent: #637852;
  --accent-strong: #475d39;
  --line: #e3e4d7;
  --soft: #eef0e5;
  --rose: #f2e2dc;
  --shadow: 0 14px 40px #39452a09;
}
:root[data-theme=dark] {
  --paper: #1b211b;
  --surface: #242c23;
  --ink: #efeee0;
  --muted: #b4baa8;
  --accent: #b1c799;
  --accent-strong: #cee2b6;
  --line: #3d4839;
  --soft: #2e392a;
  --rose: #493a36;
  --shadow: 0 14px 40px #0002;
}
body { background-image: radial-gradient(#7782670a .7px, transparent .7px); background-size: 7px 7px; }
.site-header { border-bottom-color: color-mix(in srgb, var(--line) 75%, transparent); }
.header-inner { min-height: 82px; }
.brand-word { letter-spacing: .12em; }
.brand-mark { color: var(--accent); }
.button { border-radius: 8px; min-height: 49px; padding-inline: 23px; }
.button.primary { box-shadow: 0 5px 12px #46593810; }
[data-theme=dark] .primary { color: #1b2817; }
.garden-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 62px; padding-block: 74px 83px; }
.garden-hero h1 { font-size: clamp(34px, 3.65vw, 50px); line-height: 1.55; letter-spacing: -.04em; margin: 24px 0 21px; }
.garden-hero .hero-kicker { font-size: 10px; letter-spacing: .18em; }
.garden-hero .tiny-flower { font-size: 26px; color: #b59b5b; }
.garden-hero .hero-em::after { background: #d7debd; height: 4px; bottom: -4px; }
.garden-hero .hero-copy > p { font-size: 14px; line-height: 2.1; }
.garden-hero .hero-note { margin-top: 29px; font-size: 12px; }
.garden-hero .hero-actions { gap: 12px; margin-top: 29px; }
.garden-art { max-width: none; padding: 9px 0 20px 0; width: 100%; isolation: isolate; }
.garden-art::before { inset: 1px 5px 27px 10px; background: #e4e8d6; transform: rotate(4deg); border-radius: 110px 12px 16px 12px; z-index: -1; }
.garden-art .garden-portrait { padding: 8px 8px 0; border-radius: 110px 12px 12px 12px; transform: rotate(-2deg); box-shadow: 0 18px 40px #38452613; }
.garden-art .garden-portrait[data-tilt-ready] { transform: perspective(1000px) translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotateZ(calc(-2deg + var(--tilt-z, 0deg))); }
.garden-portrait > img { width: 100%; height: 372px; object-fit: cover; object-position: 51% 44%; border-radius: 102px 7px 4px 4px; }
.garden-portrait .portrait-caption { padding: 15px 12px 18px; gap: 8px; }
.garden-portrait .portrait-caption > span:first-child { font: italic 20px/1.3 var(--serif); color: var(--accent); }
.garden-portrait .portrait-caption > span:last-child { font: 10px/1.6 var(--sans); color: var(--muted); letter-spacing: .08em; }
.garden-stamp { position: absolute; right: -15px; top: -15px; width: 94px; height: 94px; border-radius: 50%; border: 1px dashed #bdc7a6; outline: 5px solid var(--paper); background: var(--paper); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 25px; line-height: 1; transform: rotate(10deg); }
.garden-stamp > span { font: 9px/1.65 var(--sans); text-align: center; letter-spacing: .09em; }
.garden-invitation { position: absolute; bottom: -7px; left: -29px; display: flex; align-items: center; gap: 13px; padding: 15px 21px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 22px #35492d0b; transform: rotate(-3deg); transition: transform .2s; }
.garden-invitation:hover { transform: rotate(0); }
.garden-invitation strong { display: block; font-size: 13px; font-weight: 500; }
.garden-invitation small { display: block; font: italic 11px/1.9 var(--serif); color: var(--muted); }
.invitation-flower { font-size: 30px; color: #b79567; line-height: 1; }
.garden-invitation > .icon { width: 16px; color: var(--accent); margin-left: 10px; }
.quick-tools { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 23px; box-shadow: var(--shadow); }
.quick-label { color: var(--accent); }
.quick-tool { border-radius: 6px; }
.quick-tools:has(>.quick-tool:nth-child(6)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 20px; }
.quick-tools .quick-tool { min-height: 42px; font-size: 13px; gap: 10px; }
.quick-tools .quick-tool-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-tools .quick-arrow { margin-left: auto; width: 15px; }
.section-heading h2 { letter-spacing: -.025em; }
.article-cover { border-radius: 10px; }
.article-cover.cover-photo img { transition: transform .45s; }
.article-link:hover .article-cover.cover-photo img { transform: scale(1.025); }
.welcome-note { background: color-mix(in srgb, var(--soft) 70%, var(--paper)); border-color: var(--line); border-radius: 10px; }
.project-band { background: color-mix(in srgb, var(--soft) 65%, var(--paper)); border-block: 1px solid var(--line); }
.illustrated-project .project-visual { height: 215px; padding: 0; overflow: hidden; background: var(--soft); }
.illustrated-project .project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.toolbox-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); align-items: center; gap: 80px; padding-block: 55px 48px; }
.toolbox-intro h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.55; margin: 18px 0; letter-spacing: -.035em; }
.toolbox-intro p { font-size: 14px; line-height: 2; }
.toolbox-em { color: var(--accent); }
.toolbox-jump { margin-top: 20px; color: var(--accent); font-size: 13px; }
.toolbox-illustration { background: var(--surface); padding: 8px 8px 0; border: 1px solid var(--line); border-radius: 10px; transform: rotate(2deg); box-shadow: var(--shadow); width: 100%; }
.toolbox-illustration img { width: 100%; height: 240px; object-fit: cover; border-radius: 5px; }
.toolbox-illustration figcaption { font: italic 15px/1.5 var(--serif); color: var(--accent); text-align: center; padding: 11px; }
.list-controls { gap: 18px; }
.filter-buttons { gap: 5px; }
.filter-buttons button { border-radius: 7px; min-height: 40px; }
.inline-search { background: var(--surface); border-radius: 7px; min-height: 43px; }
.tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; padding-top: 30px; scroll-margin-top: 110px; }
.tool-card.illustrated-tool { padding: 0 0 22px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px #36432a04; }
.illustrated-tool > :not(.tool-art) { margin-left: 23px; margin-right: 23px; }
.tool-art { position: relative; height: 194px; overflow: hidden; background: var(--soft); }
.tool-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.illustrated-tool:hover .tool-art img { transform: scale(1.035); }
.tool-art::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #1c281526); pointer-events: none; }
.tool-art-label { position: absolute; top: 13px; left: 13px; max-width: calc(100% - 26px); padding: 4px 9px; border: 1px solid #ffffff80; border-radius: 4px; color: #394b2f; background: #fffdf2ec; font-size: 9px; letter-spacing: .08em; line-height: 1.6; }
.illustrated-tool .tool-top { margin-top: -20px; margin-bottom: 15px; position: relative; z-index: 1; }
.illustrated-tool .tool-symbol { width: 43px; height: 43px; border: 4px solid var(--surface); border-radius: 12px; background: var(--soft); color: var(--accent); box-sizing: content-box; }
.illustrated-tool .favorite { margin-top: 27px; background: var(--surface); }
.illustrated-tool > .eyebrow { font-size: 9px; letter-spacing: .1em; }
.illustrated-tool h3 { font-size: 18px; margin-top: 7px; margin-bottom: 11px; }
.illustrated-tool > p { font-size: 13px; line-height: 1.85; flex: 1; }
.illustrated-tool .tags { gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.illustrated-tool .tags span { background: var(--soft); color: var(--muted); font-size: 10px; border-radius: 4px; }
.illustrated-tool .tool-bottom { margin-top: 20px; padding-top: 17px; font-size: 11px; align-items: center; }
.illustrated-tool .tool-open { color: var(--accent); font-weight: 600; }
.access-note { border-radius: 10px; }
[data-theme=dark] .garden-art::before { background: #394831; }
[data-theme=dark] .garden-hero .hero-em::after { background: #586c43; }
[data-theme=dark] .tool-art-label { background: #263121ed; color: #f1f1dc; border-color: #647056; }
@media (max-width: 1050px) {
  .garden-hero { gap: 35px; }
  .garden-hero h1 { font-size: 38px; }
  .garden-portrait > img { height: 340px; }
  .garden-invitation { left: -12px; padding: 12px 14px; }
  .toolbox-intro { gap: 45px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-tools:has(>.quick-tool:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbox-illustration img { height: 225px; }
  .garden-portrait .portrait-caption > span:last-child { font-size: 9px; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 72px; }
  .garden-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 36px; padding-bottom: 55px; }
  .garden-hero h1 { font-size: clamp(31px, 7.5vw, 44px); margin-block: 20px 17px; }
  .garden-hero .hero-actions { flex-wrap: wrap; gap: 10px; }
  .garden-hero .button { padding-inline: 16px; font-size: 13px; }
  .garden-hero .hero-note { margin-top: 24px; font-size: 11px; }
  .garden-art { width: calc(100% - 12px); max-width: 510px; margin-inline: auto; }
  .garden-portrait > img { height: auto; aspect-ratio: 1.3; object-position: center; }
  .garden-art .garden-portrait { border-top-left-radius: 76px; }
  .garden-portrait > img { border-top-left-radius: 69px; }
  .garden-stamp { width: 77px; height: 77px; right: -8px; top: -8px; font-size: 23px; }
  .garden-stamp > span { font-size: 8px; }
  .garden-invitation { left: -3px; bottom: -9px; padding: 10px 13px; gap: 10px; }
  .garden-invitation strong { font-size: 12px; }
  .garden-invitation small { font-size: 10px; }
  .garden-portrait .portrait-caption { padding-inline: 6px; padding-block: 13px 19px; }
  .garden-portrait .portrait-caption > span:first-child { font-size: 17px; }
  .garden-portrait .portrait-caption > span:last-child { font-size: 8px; }
  .quick-tools { padding: 15px 14px; }
  .quick-tools:has(>.quick-tool:nth-child(6)) { gap: 3px 15px; }
  .quick-tools:has(>.quick-tool:nth-child(6)) > .quick-tool:first-of-type { grid-column: auto; }
  .quick-tools:has(>.quick-tool:nth-child(6)) .quick-tool { font-size: 11px; gap: 7px; }
  .quick-tools .quick-tool > .icon { width: 16px; }
  .toolbox-intro { grid-template-columns: 1fr; gap: 30px; padding-top: 35px; padding-bottom: 37px; }
  .toolbox-intro h1 { font-size: clamp(30px, 7.2vw, 41px); }
  .toolbox-illustration { max-width: 450px; width: calc(100% - 12px); margin-inline: auto; transform: rotate(1deg); }
  .toolbox-illustration img { height: auto; aspect-ratio: 1.9; }
  .toolbox-jump { margin-top: 15px; }
  .list-controls { align-items: stretch; }
  .filter-buttons { flex-wrap: wrap; white-space: normal; overflow: visible; }
  .filter-buttons button { padding-inline: 10px; font-size: 12px; flex-shrink: 0; }
  .tool-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 23px; }
  .tool-art { height: auto; aspect-ratio: 1.85; }
  .illustrated-tool > :not(.tool-art) { margin-left: 21px; margin-right: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .garden-invitation, .tool-art img, .article-cover.cover-photo img { transition: none; }
  .illustrated-tool:hover .tool-art img, .article-link:hover .article-cover.cover-photo img { transform: none; }
}
