/* Suzuri site styles — tokens mirror Suzuri/Design/Tokens.swift.
   Appearance-adaptive like the app: dark mode is a pure token swap. */

:root {
    --washi: #EFE7D6;        /* paper ground */
    --washi-card: #F2EBDB;   /* card surface */
    --washi-edge: #E7DDC8;   /* card border */
    --album-leaf: #ECE3CE;   /* the kept page */
    --sumi: #2B2520;         /* ink / all text */
    --rule: #D8CEBB;         /* hairlines, cell borders */
    --guide: #C2B79E;        /* the dot in empty cells */
    --umber: #8A7A66;        /* mono labels, slip strike */
    --umber-faint: #A89A85;  /* eyebrow whisper */
    --impression: #9C6A50;   /* the impression ink */
    --kakishibu: #A8472B;    /* wordmark dot / brand */

    --serif: "Iowan Old Style", "Palatino", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --washi: #211C16;
        --washi-card: #2A251E;
        --washi-edge: #3A3327;
        --album-leaf: #322B22;
        --sumi: #EAE2D1;
        --rule: #4A4234;
        --guide: #5C5341;
        --umber: #A99B82;
        --umber-faint: #8A7E6A;
        --impression: #C4906E;
        --kakishibu: #C9684A;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--serif);
    background-color: var(--washi);
    color: var(--sumi);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--sumi);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* The tracked-mono eyebrow — the app's group-header voice */
.eyebrow {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--umber);
}

.hairline {
    border: none;
    border-top: 1px solid var(--rule);
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.wordmark {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sumi);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wordmark img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

.wordmark .dot {
    color: var(--kakishibu);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--umber);
}

nav a:hover {
    color: var(--sumi);
    opacity: 1;
}

/* Hero */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 4.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 4rem;
    align-items: center;
}

.hero-copy .eyebrow {
    display: block;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero h1 .dot {
    color: var(--kakishibu);
}

.hero .tagline {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--sumi);
    opacity: 0.85;
    margin-bottom: 2.25rem;
    max-width: 34em;
}

/* Store badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.badges a {
    display: inline-block;
    line-height: 0;
    transition: transform 0.2s ease;
}

.badges a:hover {
    transform: scale(1.04);
    opacity: 1;
}

.badges img {
    height: 46px;
}

.platform-note {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--umber-faint);
    margin-top: 1rem;
}

/* The sheet — a bounded goal rendered in CSS */
.sheet {
    background: var(--washi-card);
    border: 1px solid var(--washi-edge);
    border-radius: 14px;
    padding: 1.6rem;
    max-width: 340px;
    margin: 0 auto;
    box-shadow: 0 1px 2px rgba(43, 37, 32, 0.06);
}

.sheet-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sumi);
    margin-bottom: 0.2rem;
}

.sheet-kicker {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--umber-faint);
    margin-bottom: 1.1rem;
}

.sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.cell {
    aspect-ratio: 1;
    border: 1px solid var(--rule);
    border-radius: 8px;
    position: relative;
}

/* a laid mark */
.cell.mark::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 5px;
    background: var(--ink, var(--kakishibu));
}

/* a slip — recorded in a lighter hand, never erased */
.cell.slip::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 50%;
    height: 2px;
    background: var(--umber);
    transform: rotate(-32deg);
}

/* an empty cell still waiting — the guide dot */
.cell.empty::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: var(--guide);
}

/* Sections */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    margin-bottom: 2.75rem;
}

.section-header .eyebrow {
    display: block;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.9rem;
    font-weight: 600;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--washi-card);
    border: 1px solid var(--washi-edge);
    border-radius: 14px;
    padding: 1.6rem;
}

.feature-card .eyebrow {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--umber-faint);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--sumi);
    opacity: 0.8;
}

/* Quiet statement */
.quiet {
    text-align: center;
    max-width: 720px;
}

.quiet .seal {
    font-family: var(--serif);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--impression);
    border-radius: 10px;
    color: var(--impression);
    font-size: 1.6rem;
    margin-bottom: 1.75rem;
    transform: rotate(-3deg);
}

.quiet h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.quiet p {
    font-size: 1.1rem;
    line-height: 1.75;
    opacity: 0.85;
}

/* Privacy highlight */
.privacy-highlight {
    max-width: none;
    background: var(--album-leaf);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 3.25rem 2rem;
    text-align: center;
}

.privacy-highlight .inner {
    max-width: 640px;
    margin: 0 auto;
}

.privacy-highlight p {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.85;
}

.privacy-highlight strong {
    color: var(--kakishibu);
    font-weight: 600;
}

.privacy-highlight a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--umber-faint);
}

/* Get section */
.get {
    text-align: center;
}

.get h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.get > p {
    max-width: 34em;
    margin: 0 auto 2.25rem;
    opacity: 0.85;
}

.get .badges {
    justify-content: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--rule);
    margin-top: 2rem;
    padding: 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-wordmark {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sumi);
}

.footer-wordmark .dot {
    color: var(--kakishibu);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--umber);
}

.footer-links a:hover {
    color: var(--sumi);
}

.copyright {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--umber-faint);
}

/* Page content (Privacy, Support) */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-content .eyebrow {
    display: block;
    margin-bottom: 0.75rem;
}

.page-content h1 {
    font-size: 2.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-content .updated {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--umber-faint);
    margin-bottom: 2.5rem;
}

.page-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    opacity: 0.85;
}

.page-content ul {
    margin: 0 0 1rem 1.4rem;
    opacity: 0.85;
}

.page-content li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

.page-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--umber-faint);
}

/* Support page */
.contact-email {
    text-align: center;
    margin: 2rem 0;
    padding: 1.6rem;
    background: var(--washi-card);
    border: 1px solid var(--washi-edge);
    border-radius: 14px;
    font-size: 1.3rem;
}

.contact-email a {
    color: var(--kakishibu);
    font-weight: 600;
    text-decoration: none;
}

.support-topics {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.support-topic {
    background: var(--washi-card);
    border: 1px solid var(--washi-edge);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
}

.support-topic h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.support-topic .eyebrow {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--umber-faint);
}

.support-topic p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
}

/* 404 */
.not-found {
    text-align: center;
    padding: 6rem 2rem;
}

.not-found h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.not-found p {
    opacity: 0.85;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 2.5rem;
        text-align: center;
    }

    .hero .tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .badges {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
