/* linamani.com — the company site. Plain HTML and CSS, no build step: www/ is synced to its own
   bucket and served by the distribution's default behavior (infra/terraform/www.tf). */

/* Layout: a startup home page — a bar with the call to action, the one line and a sub-line, the
   two products each a card that leads to its own home, the founders, a closing call with the
   contact facts, a footer with the legal name. */
:root {
    color-scheme: light;
    --bg: #f6f8f8;
    --surface: #ffffff;
    --alt: #eef3f3;
    --ink: #15303b;
    --text: #1e2f36;
    --muted: #5b6b72;
    --line: #d9e1e3;
    --accent: #0f6b73;
    --accent-ink: #ffffff;
    --accent-soft: #e3f1f2;
    --good: #2e7d4f;
    --warn: #b7791f;
    --bad: #b3261e;
    --shadow: 0 1px 2px rgba(21, 48, 59, 0.06), 0 12px 32px rgba(21, 48, 59, 0.08);
    --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0f1d23;
        --surface: #152831;
        --alt: #122229;
        --ink: #e6eef0;
        --text: #dce6e9;
        --muted: #9fb2b8;
        --line: #27404a;
        --accent: #7cc7cc;
        --accent-ink: #0b1a1f;
        --accent-soft: #163a41;
        --good: #7fd3a1;
        --warn: #e3b35c;
        --bad: #f0877f;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1d23;
    --surface: #152831;
    --alt: #122229;
    --ink: #e6eef0;
    --text: #dce6e9;
    --muted: #9fb2b8;
    --line: #27404a;
    --accent: #7cc7cc;
    --accent-ink: #0b1a1f;
    --accent-soft: #163a41;
    --good: #7fd3a1;
    --warn: #e3b35c;
    --bad: #f0877f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

img {
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.1rem, 1.3rem + 3vw, 3.3rem);
}

h2 {
    font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.eyebrow,
.badge {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    margin-bottom: 20px;
}

.lede {
    max-width: var(--measure);
    margin-top: 12px;
    color: var(--muted);
    font-size: 1.08rem;
}

.links {
    display: flex;
    gap: 8px 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

/* --- buttons ------------------------------------------------------------------------------------- */

.button {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    font-weight: 500;
    text-decoration: none;
    color: var(--accent);
    background: transparent;
    white-space: nowrap;
}

.button.primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.button.small {
    padding: 7px 14px;
    font-size: 0.92rem;
}

.button:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.button.primary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

.cta-row {
    display: flex;
    gap: 12px 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- header -------------------------------------------------------------------------------------- */

.site-header {
    padding-block: 14px 12px;
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    flex-wrap: wrap;
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.1rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.015em;
}

.site-nav {
    display: flex;
    gap: 6px 24px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-left: auto;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* --- hero ---------------------------------------------------------------------------------------- */

.hero {
    padding-block: clamp(28px, 3.5vw, 44px) clamp(28px, 3.5vw, 40px);
}

/* The pitch on the left, the two products on the right, side by side from a laptop's width up;
   one under the other below it. */
.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px 64px;
    align-items: center;
}

@media (min-width: 960px) {
    .hero .wrap {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }
}

/* The two products side by side wherever two fit, one under the other on a phone. */
.hero .products {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 0;
}

@media (min-width: 560px) {
    .hero .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hero .product h3 {
    font-size: 1.18rem;
}

.hero .eyebrow {
    margin-bottom: 10px;
}

.hero .sub {
    max-width: 70ch;
    margin-top: 16px;
    font-size: 1.08rem;
    color: var(--text);
}

/* --- sections ------------------------------------------------------------------------------------ */

.section {
    padding-block: clamp(36px, 5vw, 64px);
    border-top: 1px solid var(--line);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
    margin-top: 28px;
}

.product {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
}

.product:hover {
    border-color: var(--accent);
}

.product h3 {
    font-size: 1.35rem;
}

.product .go {
    margin-top: auto;
    padding-top: 8px;
    color: var(--accent);
    font-weight: 500;
}

/* --- the closing call ---------------------------------------------------------------------------- */

.band {
    background: var(--ink);
    color: var(--bg);
    border-top: 0;
    padding-block: clamp(22px, 3vw, 32px);
}

.band h2 {
    color: var(--bg);
}

.band p {
    color: var(--bg);
    opacity: 0.86;
    max-width: 48ch;
    margin-top: 8px;
}

.band .button.primary {
    background: var(--bg);
    border-color: var(--bg);
    color: var(--ink);
}

.band .button.primary:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
}

/* The question and the address side by side wherever two columns fit; one under the other on a phone. */
.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px 48px;
    align-items: center;
}

@media (min-width: 760px) {
    .band-grid {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.band-cta {
    display: flex;
    justify-content: flex-start;
}

@media (min-width: 760px) {
    .band-cta {
        justify-content: flex-end;
    }
}

/* --- footer -------------------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 16px 20px;
    font-size: 0.88rem;
    color: var(--muted);
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 12px 32px;
    flex-wrap: wrap;
}

.site-footer nav {
    display: flex;
    gap: 6px 20px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--muted);
}

/* --- the not-found page -------------------------------------------------------------------------- */

.not-found {
    padding-block: clamp(64px, 12vw, 160px);
}

.not-found p {
    max-width: var(--measure);
    margin-top: 18px;
    font-size: 1.1rem;
}

@media (prefers-reduced-motion: no-preference) {
    .button,
    .site-nav a {
        transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
    }
}
