:root {
    --bg: #f6f0e3;
    --bg-soft: #fbf7ef;
    --paper: rgba(255, 251, 244, 0.84);
    --card: rgba(255, 253, 248, 0.9);
    --line: rgba(74, 58, 45, 0.12);
    --ink: #241b16;
    --muted: #68574a;
    --accent: #b45f2b;
    --accent-strong: #8f4314;
    --accent-soft: #f2d4b4;
    --accent-faint: rgba(180, 95, 43, 0.1);
    --teal: #2f6f6a;
    --shadow-lg: 0 28px 80px rgba(53, 36, 21, 0.16);
    --shadow-md: 0 18px 48px rgba(53, 36, 21, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 153, 0.42), transparent 30%),
        radial-gradient(circle at 85% 12%, rgba(103, 169, 163, 0.22), transparent 28%),
        linear-gradient(180deg, #fff9ef 0%, var(--bg) 45%, #f3ebda 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(107, 84, 64, 0.04) 1px, transparent 1px);
    background-size: 100% 36px;
    opacity: 0.45;
}

body.note-home {
    --accent: #b45f2b;
    --accent-strong: #8f4314;
    --accent-soft: #f2d4b4;
    --accent-faint: rgba(180, 95, 43, 0.1);
}

body.note-regular {
    --accent: #5f49b5;
    --accent-strong: #43318a;
    --accent-soft: #e8e1ff;
    --accent-faint: rgba(95, 73, 181, 0.12);
}

body.note-postit {
    --accent: #d29a14;
    --accent-strong: #9b6b00;
    --accent-soft: #fff1a9;
    --accent-faint: rgba(210, 154, 20, 0.13);
}

body.note-image {
    --accent: #2f6f6a;
    --accent-strong: #1f5a56;
    --accent-soft: #dff3ef;
    --accent-faint: rgba(47, 111, 106, 0.12);
}

body.note-checklist {
    --accent: #4caf50;
    --accent-strong: #2f7e35;
    --accent-soft: #dff1db;
    --accent-faint: rgba(76, 175, 80, 0.12);
}

body.note-bookmark {
    --accent: #2378ad;
    --accent-strong: #14547b;
    --accent-soft: #d6ecfb;
    --accent-faint: rgba(35, 120, 173, 0.12);
}

body.note-drawing {
    --accent: #5e6ad2;
    --accent-strong: #4049a8;
    --accent-soft: #e5e7ff;
    --accent-faint: rgba(94, 106, 210, 0.12);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page {
    position: relative;
    overflow: hidden;
}

.shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(251, 247, 239, 0.66);
    border-bottom: 1px solid rgba(82, 61, 44, 0.08);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy strong,
.eyebrow,
.section-eyebrow,
.metric-label,
.button,
.card-eyebrow,
.breadcrumbs,
.current-label {
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-copy strong {
    display: block;
    font-size: 0.86rem;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.text-link {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.text-link:hover {
    color: var(--ink);
}

main {
    padding: 44px 0 80px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 34px;
    align-items: center;
    padding-top: 30px;
}

.note-page .hero-stage {
    align-self: start;
}

.note-page .hero-notes {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.eyebrow,
.section-eyebrow,
.card-eyebrow,
.current-label,
.breadcrumbs {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.breadcrumbs a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.hero h1,
.section-head h2,
.feature-card h3,
.story-card h3,
.use-card h3,
.note-card h3,
.cta-panel h2 {
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    max-width: 10ch;
}

.hero-subtitle {
    max-width: 58ch;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff8f0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 18px 30px rgba(53, 36, 21, 0.2);
}

.button-secondary {
    color: var(--ink);
    border-color: rgba(82, 61, 44, 0.14);
    background: rgba(255, 255, 255, 0.55);
}

.hero-notes,
.feature-grid,
.use-grid,
.note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hero-notes {
    margin-top: 32px;
}

.metric,
.feature-card,
.use-card,
.note-card,
.story-card,
.cta-panel {
    border: 1px solid rgba(82, 61, 44, 0.08);
    box-shadow: var(--shadow-md);
}

.metric {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--paper);
}

.metric strong {
    display: block;
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-label {
    display: block;
    font-size: 0.68rem;
    color: var(--accent-strong);
    margin-bottom: 8px;
}

.metric p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.hero-stage {
    position: relative;
    padding: 24px;
    border-radius: 40px;
    border: 1px solid rgba(82, 61, 44, 0.09);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(248, 241, 229, 0.85)),
        rgba(255, 255, 255, 0.46);
    box-shadow: var(--shadow-lg);
}

.stage-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.stage-mosaic .shot-card:first-child {
    grid-column: 1 / -1;
}

.shot-card {
    display: grid;
    gap: 10px;
}

.shot-card img,
.hero-stage.single-shot img,
.note-card-media img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 32px rgba(44, 28, 16, 0.16));
}

.hero-stage.single-shot img {
    border-radius: 24px;
}

.stage-caption {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.section {
    margin-top: 96px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: 13ch;
}

.section-head p {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
    line-height: 1.75;
}

.feature-card,
.use-card,
.note-card,
.story-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--card);
}

.feature-card {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(247, 239, 226, 0.88));
}

.feature-card h3,
.use-card h3,
.note-card h3 {
    margin: 12px 0;
    font-size: 1.6rem;
    line-height: 1.08;
}

.feature-card p,
.use-card p,
.note-card p,
.story-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.story-card {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 239, 226, 0.9));
}

.story-card h3 {
    margin: 10px 0 12px;
    font-size: 2rem;
    line-height: 1.02;
}

.story-card ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.story-card li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(82, 61, 44, 0.08);
    line-height: 1.55;
    color: var(--ink);
}

.note-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 16px;
}

.note-card-media {
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(246, 238, 224, 0.95));
    border: 1px solid rgba(82, 61, 44, 0.08);
}

.card-eyebrow {
    display: inline-block;
    margin-top: 2px;
}

.note-card-link,
.current-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
}

.note-card-link {
    color: var(--accent-strong);
}

.current-label {
    color: var(--ink);
}

.note-card.is-current {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(243, 234, 214, 0.98));
    box-shadow: 0 0 0 2px var(--accent-faint), var(--shadow-md);
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 223, 188, 0.55), transparent 35%),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(243, 232, 214, 0.9));
}

.cta-panel h2 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
}

.cta-panel p {
    margin: 0;
    max-width: 54ch;
    color: var(--muted);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-footer {
    padding: 28px 0 48px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-contact a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 1080px) {
    .hero,
    .story-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .section-head,
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .hero-notes,
    .feature-grid,
    .use-grid,
    .note-grid,
    .stage-mosaic {
        grid-template-columns: 1fr;
    }

    .stage-mosaic .shot-card:first-child {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .site-header .shell {
        padding: 14px 0;
    }

    main {
        padding-top: 28px;
    }

    .hero-stage,
    .feature-card,
    .story-card,
    .use-card,
    .note-card,
    .cta-panel {
        padding: 22px;
    }

    .brand-copy span,
    .text-link {
        display: none;
    }

    .button {
        min-height: 48px;
        padding: 0 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
