/* Home: paper, green ink and a small vermilion accent. All rules stay in the home namespace. */
.home-page { min-width: 0; padding: 42px 0 0; }
.home-hero { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 35%); column-gap: 24px; align-items: center; min-width: 0; padding: 0; }
.home-eyebrow { display: flex; align-items: center; gap: 10px; grid-column: 1; margin: 0 0 12px; color: var(--muted); font-size: 12px; letter-spacing: 1.5px; }
.home-eyebrow > span { width: 22px; height: 1px; background: var(--red); }
.home-title { grid-column: 1; margin: 0; font: 500 clamp(32px, 3.8vw, 52px)/1.4 var(--serif); letter-spacing: 1px; }
.home-title > span { color: #6b7c68; }
.home-intro-copy { grid-column: 1; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 2; }
.home-art { grid-column: 2; grid-row: 1 / span 3; position: relative; align-self: center; width: 100%; height: 176px; margin: 0; }
.home-ink-scene { display: block; width: 100%; height: 100%; overflow: visible; }
.home-ink-mountains, .home-ink-mist, .home-ink-water { transform-origin: center; }
.home-ink-inscription { position: absolute; top: 23px; right: 3px; color: #8b947f; font: 11px/1.9 var(--serif); letter-spacing: 3px; writing-mode: vertical-rl; }
.home-art-seal { position: absolute; right: 4px; bottom: 16px; padding: 4px 5px; border: 1px solid #bf7760; border-radius: 1px; background: #b95a4409; box-shadow: inset 0 0 0 1px #f7f6f0; color: #b16a53; font: 14px/1.1 var(--serif); transform: rotate(3deg); }
.home-art-caption { grid-column: 2; margin: 0; color: #8a947f; font: 11px/1.7 var(--serif); letter-spacing: 2px; text-align: center; }
.home-is-active .home-ink-mountains { animation: home-ink-arrive 1.4s ease-out both; }
.home-is-active .home-ink-mist { animation: home-mist-drift 19s ease-in-out infinite alternate; }
.home-is-active .home-ink-water { animation: home-water-breathe 11s ease-in-out infinite; }
.home-motion-paused .home-ink-mountains, .home-motion-paused .home-ink-mist, .home-motion-paused .home-ink-water { animation-play-state: paused; }
@keyframes home-ink-arrive { from { opacity: .72; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@keyframes home-mist-drift { from { opacity: .75; transform: translateX(-4px); } to { opacity: 1; transform: translateX(6px); } }
@keyframes home-water-breathe { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

.home-question-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px 32px; width: 100%; min-width: 0; margin: 0; padding: clamp(24px, 2.6vw, 34px); border: 1px solid #d8ddd1; border-radius: 5px; background: radial-gradient(ellipse at 0 0, #efeddf50, transparent 62%), repeating-linear-gradient(104deg, transparent 0 5px, #7b7e5a03 5px 6px, transparent 6px 11px), var(--panel); box-shadow: 0 3px 18px #4a584405; }
.home-question-panel::before, .home-question-panel::after { position: absolute; width: 12px; height: 12px; border-color: #b7785d70; border-style: solid; pointer-events: none; content: ""; }
.home-question-panel::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.home-question-panel::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.home-question-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 0; }
.home-question-label { display: inline-flex; align-items: center; gap: 11px; font: 500 clamp(22px, 2.1vw, 28px)/1.5 var(--serif); }
.home-question-seal { display: inline-grid; place-items: center; width: 25px; height: 27px; flex: 0 0 auto; border: 1px solid #ba7961; border-radius: 1px; background: #b95a4406; color: var(--red); font: 16px/1 var(--serif); transform: rotate(-3deg); }
.home-optional { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.home-question { grid-column: 1 / -1; width: 100%; height: 108px; min-height: 108px; max-height: 280px; padding: 15px 16px; border: 1px solid #cdd7c8; border-radius: 5px; background: var(--paper); font-size: 15px; line-height: 1.9; resize: vertical; }
.home-question::placeholder { color: #899381; }
.home-question-meta { grid-column: 1 / -1; display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-top: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.home-question-meta > p { margin: 0; }
.home-question-meta > span { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.home-inspiration { grid-column: 1; grid-row: 4 / span 3; min-width: 0; margin-top: 4px; }
.home-inspiration-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.home-inspiration-controls { display: flex; align-items: center; gap: 4px; }
.home-inspiration-step { min-width: 32px; min-height: 32px; padding: 3px 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 16px; }
.home-inspiration-toggle { min-width: 0; min-height: 32px; padding: 3px 6px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; }
.home-inspiration-step:hover, .home-inspiration-toggle:hover { border-color: var(--line); background: var(--soft); color: var(--ink); }
.home-inspiration-example { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; width: 100%; min-height: 76px; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: transparent; text-align: left; }
.home-inspiration-example:hover { border-color: #a8b6a2; background: var(--soft); }
.home-inspiration-category { align-self: start; margin-top: 1px; padding: 2px 6px; border: 1px solid #dce3d5; border-radius: 3px; background: #edf0e7; color: #6b7c68; font-size: 10px; line-height: 1.7; white-space: nowrap; }
.home-inspiration-text { color: var(--ink); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.home-inspiration-fill { align-self: end; color: var(--muted); font-size: 10px; line-height: 2.2; white-space: nowrap; }
.home-inspiration-enter { animation: home-inspiration-enter 220ms ease-out; }
@keyframes home-inspiration-enter { from { opacity: .25; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.home-inspiration-help { min-height: 19px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.home-start-context { grid-column: 2; grid-row: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; margin-top: 0; }
.home-method-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; }
.home-method-tag > span { color: #78886f; font-size: 15px; }
.home-settings-link { display: inline-flex; align-items: center; gap: 5px; min-width: 0; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.home-settings-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.home-start { grid-column: 2; grid-row: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 54px; margin-top: 0; padding: 13px 20px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: var(--panel); font-size: 16px; }
.home-start:hover { border-color: #375647; background: #375647; }
.home-start > span:last-child { font-size: 23px; line-height: 1; }
.home-result-note { grid-column: 2; grid-row: 6; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.9; }

.home-tools { min-width: 0; margin-top: 57px; padding-top: 29px; border-top: 1px solid var(--line); }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.home-section-eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 10px; letter-spacing: 1.1px; }
.home-section-heading h2 { margin: 0; font: 500 26px/1.5 var(--serif); letter-spacing: 1px; }
.home-section-heading > p { margin: 0 0 2px; color: var(--muted); font-size: 12px; }
.home-tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-tool-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 266px; padding: 22px 20px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-align: left; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.home-tool-card:hover { border-color: #9fae98; background: #f8f9f2; transform: translateY(-3px); }
.home-tool-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.home-tool-index { color: #86917e; font: 12px/1.5 Georgia, serif; }
.home-tool-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; color: #7b8c72; font: 22px/1 var(--serif); }
.home-tool-name { font: 500 23px/1.5 var(--serif); }
.home-tool-badge { margin-top: 5px; color: #77866f; font-size: 10px; }
.home-tool-description { margin: 16px 0 19px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.home-tool-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.home-tool-action > span { color: #7b8c72; font-size: 17px; }
.home-tool-soon { background: transparent; }
.home-tool-soon .home-tool-badge { align-self: start; padding: 1px 6px; border: 1px solid #e6d5c8; border-radius: 3px; color: #a06f59; }
.home-bottom-note { margin: 25px 0 0; color: #8b9684; font: 12px/1.8 var(--serif); letter-spacing: 1px; text-align: center; }

@media (max-width: 1199px) and (min-width: 900px) {
  .home-hero { gap: 24px; }
  .home-intro { grid-template-columns: minmax(0, 1fr) 230px; column-gap: 24px; }
  .home-art { height: 150px; }
  .home-title { font-size: clamp(32px, 3.8vw, 44px); }
  .home-question-panel { padding: 23px; }
  .home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tool-card { min-height: 248px; }
  .home-inspiration-example { grid-template-columns: auto minmax(0, 1fr); }
  .home-inspiration-fill { display: none; }
}
@media (max-width: 899px) {
  .home-page { padding-top: 28px; }
  .home-hero { gap: 24px; }
  .home-title { font-size: clamp(30px, 4.5vw, 40px); }
  .home-eyebrow { font-size: 10px; letter-spacing: 1px; }
  .home-intro-copy { font-size: 13px; }
  .home-question-panel { padding: 24px; }
  .home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .home-page { padding-top: 20px; }
  .home-hero { gap: 20px; }
  .home-question-panel { padding: 21px 18px; }
  .home-question-heading { gap: 8px; margin-bottom: 13px; }
  .home-question-label { gap: 8px; font-size: clamp(22px, 6vw, 25px); }
  .home-question { height: 119px; min-height: 119px; padding: 12px; font-size: 16px; }
  .home-question-meta { font-size: 11px; }
  .home-inspiration { margin-top: 18px; }
  .home-inspiration-heading { font-size: 11px; }
  .home-inspiration-example { grid-template-columns: auto minmax(0, 1fr); gap: 8px; min-height: 78px; padding: 11px; }
  .home-inspiration-text { font-size: 12px; }
  .home-inspiration-category { font-size: 11px; padding-inline: 4px; }
  .home-inspiration-fill { display: none; }
  .home-inspiration-help { font-size: 11px; }
  .home-start-context { margin-top: 14px; }
  .home-start { margin-top: 7px; }
  .home-result-note { font-size: 11px; }
  .home-intro { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 0; padding: 0; }
  .home-eyebrow { margin-bottom: 12px; font-size: 11px; }
  .home-title { font-size: clamp(22px, 6vw, 34px); line-height: 1.45; letter-spacing: 1px; }
  .home-intro-copy { max-width: 100%; margin-top: 10px; font-size: 12px; }
  .home-desktop-break { display: none; }
  .home-art { display: block; grid-column: 1; grid-row: auto; justify-self: end; width: min(100%, 380px); height: 82px; margin-top: 6px; }
  .home-ink-inscription { display: none; }
  .home-art-seal { right: 2px; bottom: 3px; padding: 3px 4px; font-size: 11px; }
  .home-art-caption { display: none; }
  .home-tools { margin-top: 26px; padding-top: 24px; }
  .home-section-heading { align-items: start; gap: 10px; margin-bottom: 17px; }
  .home-section-heading h2 { font-size: 23px; }
  .home-section-eyebrow { font-size: 11px; }
  .home-section-heading > p { display: none; }
  .home-tools-grid { gap: 11px; }
  .home-tool-card { min-height: 264px; padding: 15px 13px 13px; }
  .home-tool-top { margin-bottom: 13px; }
  .home-tool-name { font-size: 22px; }
  .home-tool-badge { font-size: 11px; }
  .home-tool-description { margin: 13px 0 16px; font-size: 12px; }
  .home-tool-action { font-size: 12px; }
  .home-bottom-note { margin-top: 23px; font-size: 11px; letter-spacing: .3px; }
}
@media (max-width: 359px) {
  .home-question-panel { padding: 19px 14px; }
  .home-question-label { font-size: 22px; }
  .home-question-seal { display: none; }
  .home-question-meta { gap: 7px; font-size: 11px; }
  .home-inspiration-heading { gap: 4px; }
  .home-inspiration-controls { gap: 1px; }
  .home-inspiration-step { min-width: 28px; padding-inline: 5px; }
  .home-inspiration-toggle { padding-inline: 3px; font-size: 11px; }
  .home-title { font-size: 22px; }
  .home-art { display: block; height: 72px; }
  .home-intro-copy { max-width: 100%; }
  .home-tool-card { min-height: 285px; padding-inline: 11px; }
  .home-tool-name { font-size: 21px; }
  .home-tool-action > span { font-size: 14px; }
}
@media (pointer: coarse) {
  .home-inspiration-heading { flex-wrap: wrap; }
  .home-inspiration-controls { gap: 4px; margin-left: auto; }
  .home-inspiration-step { min-width: 44px; min-height: 44px; }
  .home-inspiration-toggle { min-width: 88px; min-height: 44px; }
  .home-settings-link { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-is-active .home-ink-mountains, .home-is-active .home-ink-mist, .home-is-active .home-ink-water, .home-inspiration-enter { animation: none; }
  .home-tool-card { transition: border-color 160ms ease, background-color 160ms ease; }
  .home-tool-card:hover { transform: none; }
}

@media (max-width: 760px) {
  .home-question-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-inspiration, .home-start-context, .home-start, .home-result-note { grid-column: 1; grid-row: auto; }
  .home-inspiration { margin-top: 8px; }
  .home-start-context { margin-top: 8px; }
  .home-start, .home-result-note { margin-top: 0; }
}
