/* Public pages (landing, privacy, terms): an almanac / seed-catalog look.
   Everything is scoped under .hs so it can't leak into the MudBlazor app. */

.hs {
    --hs-paper: #f6efe0;
    --hs-paper-2: #efe5cf;
    --hs-card: #fffcf3;
    --hs-ink: #23301f;
    --hs-ink-soft: #4d5a46;
    --hs-green: #3f6b4c;
    --hs-green-deep: #2b4a35;
    --hs-gold: #b98a3e;
    --hs-gold-light: #dcb972;
    --hs-rust: #a8462a;
    --hs-line: rgba(35, 48, 31, 0.2);
    --hs-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --hs-body: 'Karla', 'Segoe UI', system-ui, sans-serif;

    min-height: 100vh;
    color: var(--hs-ink);
    font-family: var(--hs-body);
    font-size: 1.06rem;
    line-height: 1.65;
    background-color: var(--hs-paper);
    /* paper grain */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.28  0 0 0 0 0.15  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    overflow-x: clip;
}

.hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
.hs a { color: inherit; }
.hs :focus-visible { outline: 3px solid var(--hs-gold); outline-offset: 3px; border-radius: 4px; }
/* Blazor moves focus to the page's h1 on navigation; that isn't a keyboard focus ring worth drawing. */
.hs h1:focus, .hs h1:focus-visible { outline: none; }
.hs h1, .hs h2, .hs h3 { font-family: var(--hs-display); font-weight: 500; margin: 0; letter-spacing: -0.015em; line-height: 1.08; }
.hs p { margin: 0; }

.hs-wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- header ---------- */
.hs-header { display: flex; align-items: center; justify-content: space-between; padding-block: 1.4rem; }
.hs-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--hs-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.hs-brand svg { width: 30px; height: 30px; }
.hs-nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 500; }
.hs-nav a:not(.hs-btn) { text-decoration: none; padding-block: .3rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.hs-nav a:not(.hs-btn):hover { background-size: 100% 2px; }

/* ---------- buttons (letterpress: a hard offset shadow) ---------- */
.hs-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border: 2px solid var(--hs-ink); border-radius: 4px; font-weight: 700; text-decoration: none; letter-spacing: .01em; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.hs-btn--primary { background: var(--hs-green-deep); color: var(--hs-paper) !important; box-shadow: 4px 4px 0 var(--hs-gold); }
.hs-btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hs-gold); }
.hs-btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hs-gold); }
.hs-btn--ghost { background: transparent; }
.hs-btn--ghost:hover { background: rgba(35, 48, 31, .07); }
.hs-btn--small { padding: .5rem 1rem; font-size: .95rem; }

/* ---------- hero ---------- */
.hs-hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; padding-block: 3rem 5.5rem; }
.hs-hero::before { /* low sun */
    content: ""; position: absolute; right: -9%; top: 4%; width: 520px; height: 520px; z-index: -1;
    border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(220, 185, 114, .55), rgba(220, 185, 114, 0) 68%);
}
.hs-kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--hs-green); margin-bottom: 1.4rem; }
.hs-kicker::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; }
.hs-hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.1rem); font-variation-settings: "opsz" 144; }
.hs-hero h1 em { font-style: italic; color: var(--hs-green); font-weight: 400; }
.hs-lede { margin-top: 2.1rem; max-width: 34rem; font-size: 1.18rem; color: var(--hs-ink-soft); }
.hs-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin-top: 2.2rem; align-items: center; }
.hs-fine { margin-top: 1.7rem; font-size: .92rem; color: var(--hs-ink-soft); }

/* the sample "This Week" ledger */
.hs-ledger { position: relative; transform: rotate(1.8deg); background: var(--hs-card); border: 1px solid var(--hs-line); padding: 1.7rem 1.6rem 1.4rem;
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 28px 44px -20px rgba(43, 74, 53, .45); }
.hs-ledger::before, .hs-ledger::after { content: ""; position: absolute; top: -13px; width: 88px; height: 26px; background: rgba(220, 185, 114, .6); }
.hs-ledger::before { left: 22px; transform: rotate(-5deg); }
.hs-ledger::after { right: 22px; transform: rotate(4deg); }
.hs-ledger h2 { font-size: 1.35rem; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .7rem; border-bottom: 2px solid var(--hs-ink); }
.hs-ledger h2 small { font-family: var(--hs-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-ink-soft); font-weight: 700; }
.hs-ledger ul { list-style: none; margin: 0; padding: 0; }
.hs-ledger li { display: flex; gap: .8rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px dashed var(--hs-line); font-size: .98rem; line-height: 1.4; }
.hs-ledger li i { flex: none; width: 15px; height: 15px; border: 2px solid var(--hs-ink); border-radius: 3px; position: relative; top: 2px; }
.hs-ledger li.done { color: var(--hs-ink-soft); text-decoration: line-through; text-decoration-color: rgba(35,48,31,.4); }
.hs-ledger li.done i { background: var(--hs-green); border-color: var(--hs-green); }
.hs-ledger li.done i::after { content: ""; position: absolute; left: 3px; top: -1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.hs-ledger li span { display: block; font-size: .82rem; color: var(--hs-rust); font-weight: 700; letter-spacing: .02em; text-decoration: none; }
/* the chart and its caption leave room on the left for the stamp */
.hs-chart { margin: 1.1rem 0 0 5.4rem; display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.hs-chart b { flex: 1; background: var(--hs-green); opacity: .85; border-radius: 2px 2px 0 0; }
.hs-chart b:nth-child(even) { background: var(--hs-gold); }
.hs-chart-cap { display: flex; justify-content: space-between; margin: .45rem 0 0 5.4rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hs-ink-soft); }

.hs-stamp { position: absolute; left: -38px; bottom: -34px; width: 124px; height: 124px; display: grid; place-items: center; text-align: center; transform: rotate(-13deg);
    color: var(--hs-rust); border: 3px solid var(--hs-rust); border-radius: 50%; mix-blend-mode: multiply; background: rgba(246, 239, 224, .5); }
.hs-stamp::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--hs-rust); border-radius: 50%; }
.hs-stamp span { font-family: var(--hs-display); font-weight: 700; font-size: 1.02rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .06em; }
.hs-stamp small { display: block; font-family: var(--hs-body); font-weight: 700; font-size: .58rem; letter-spacing: .16em; margin-top: .25rem; }

/* ---------- ornament divider ---------- */
.hs-rule { display: flex; align-items: center; gap: 1rem; color: var(--hs-green); }
.hs-rule::before, .hs-rule::after { content: ""; flex: 1; height: 1px; background: var(--hs-line); }
.hs-rule svg { width: 34px; height: 34px; }

/* ---------- table of contents ---------- */
.hs-band { background: var(--hs-green-deep); color: var(--hs-paper); position: relative; }
.hs-band::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,255,255,.028) 22px 23px); }
.hs-toc { position: relative; padding-block: 5.5rem; }
.hs-toc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.hs-toc-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hs-toc-head h2 em { color: var(--hs-gold-light); font-weight: 400; }
.hs-toc-head p { color: rgba(246, 239, 224, .78); max-width: 30rem; }
.hs-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
.hs-toc li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 .5rem; padding: 1.15rem 0; border-top: 1px solid rgba(246, 239, 224, .22); }
.hs-toc li b { grid-row: span 2; font-family: var(--hs-display); font-style: italic; font-weight: 400; font-size: 1.6rem; color: var(--hs-gold-light); line-height: 1.1; }
.hs-toc h3 { font-size: 1.32rem; font-weight: 500; }
.hs-toc li p { color: rgba(246, 239, 224, .72); font-size: .98rem; line-height: 1.5; margin-top: .2rem; }

/* ---------- "plans around your land" ---------- */
.hs-three { padding-block: 5.5rem; display: grid; grid-template-columns: repeat(3, 1fr); }
.hs-three > div { padding: .4rem 2.2rem; border-left: 1px solid var(--hs-line); }
.hs-three > div:first-child { border-left: 0; padding-left: 0; }
.hs-three > div:last-child { padding-right: 0; }
.hs-three svg { width: 44px; height: 44px; color: var(--hs-green); margin-bottom: 1.1rem; }
.hs-three h3 { font-size: 1.55rem; margin-bottom: .6rem; }
.hs-three p { color: var(--hs-ink-soft); }
.hs-section-title { text-align: center; padding-top: 5rem; }
.hs-section-title h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.hs-section-title h2 em { font-style: italic; color: var(--hs-green); font-weight: 400; }

/* ---------- plans strip ---------- */
.hs-plans { background: var(--hs-paper-2); border-block: 1px solid var(--hs-line); }
.hs-plans-inner { padding-block: 4.2rem; display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 2.4rem; align-items: start; }
.hs-plans h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.hs-plan { border-top: 3px solid var(--hs-ink); padding-top: 1rem; }
.hs-plan h3 { font-size: 1.15rem; font-family: var(--hs-body); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hs-plan .price { font-family: var(--hs-display); font-size: 2.6rem; line-height: 1.1; margin: .3rem 0; font-variation-settings: "opsz" 144; }
.hs-plan .price small { font-family: var(--hs-body); font-size: .95rem; color: var(--hs-ink-soft); }
.hs-plan p { font-size: .97rem; color: var(--hs-ink-soft); line-height: 1.5; }
.hs-link { display: inline-block; margin-top: 1.2rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--hs-gold); }
.hs-link:hover { border-bottom-color: var(--hs-ink); }

/* ---------- closing call to action ---------- */
.hs-close { text-align: center; padding-block: 6rem 5rem; }
.hs-close h2 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; margin-inline: auto; font-variation-settings: "opsz" 144; }
.hs-close h2 em { font-style: italic; font-weight: 400; color: var(--hs-green); }
.hs-close .hs-cta { justify-content: center; }

/* ---------- footer ---------- */
.hs-footer { border-top: 1px solid var(--hs-line); padding-block: 2.2rem 3rem; font-size: .96rem; color: var(--hs-ink-soft); }
.hs-footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.hs-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.hs-footer a { text-decoration: none; }
.hs-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal pages ---------- */
.hs-legal { padding-block: 3rem 5rem; max-width: 46rem; }
.hs-legal .hs-kicker { margin-bottom: 1rem; }
.hs-legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-variation-settings: "opsz" 144; }
.hs-legal .hs-updated { margin-top: .8rem; color: var(--hs-ink-soft); font-size: .95rem; }
.hs-legal .hs-summary { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--hs-card); border: 1px solid var(--hs-line); border-left: 4px solid var(--hs-gold); }
.hs-legal .hs-summary strong { font-family: var(--hs-display); font-weight: 600; }
.hs-legal h2 { font-size: 1.6rem; margin: 2.8rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--hs-line); }
.hs-legal h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; font-family: var(--hs-body); font-weight: 700; letter-spacing: 0; }
.hs-legal p, .hs-legal li { color: #2f3b2b; }
.hs-legal p + p { margin-top: .9rem; }
.hs-legal ul { padding-left: 1.3rem; margin: .8rem 0; }
.hs-legal li { margin: .4rem 0; }
.hs-legal a { color: var(--hs-green); text-underline-offset: 3px; }
.hs-legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .96rem; }
.hs-legal th, .hs-legal td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--hs-line); }
.hs-legal th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hs-ink-soft); }
.hs-table-scroll { overflow-x: auto; }

/* ---------- motion: one staggered entrance, plus a quiet scroll reveal where supported ---------- */
@keyframes hs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hs-rise { animation: hs-rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms); }
.hs-ledger.hs-rise { animation-name: hs-rise-tilt; }
@keyframes hs-rise-tilt { from { opacity: 0; transform: translateY(24px) rotate(4deg); } to { opacity: 1; transform: rotate(1.8deg); } }
@supports (animation-timeline: view()) {
    .hs-reveal { animation: hs-rise both linear; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-rise, .hs-reveal { animation: none !important; }
    .hs-btn, .hs-nav a { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
    .hs-hero { grid-template-columns: 1fr; gap: 3.5rem; padding-block: 1.5rem 4.5rem; }
    .hs-ledger { max-width: 30rem; margin-inline: auto; }
    .hs-stamp { left: -6px; }
    .hs-toc-head, .hs-toc ol { grid-template-columns: 1fr; }
    .hs-three { grid-template-columns: 1fr; padding-block: 3.5rem; }
    .hs-three > div { padding: 1.6rem 0; border-left: 0; border-top: 1px solid var(--hs-line); }
    .hs-three > div:first-child { border-top: 0; }
    .hs-plans-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .hs-section-title { padding-top: 3.5rem; }
}
@media (max-width: 520px) {
    .hs-chart-cap { justify-content: flex-end; }
    .hs-chart-cap span:first-child { display: none; } /* no room beside the stamp */
    .hs-nav { gap: 1rem; }
    .hs-nav .hs-nav-link-optional { display: none; }
    .hs-toc { padding-block: 3.5rem; }
}
