:root {
    --paper: #f1ebdc;
    --paper-2: #eae2cf;
    --ink: #0e2148;
    --ink-soft: #33405e;
    --gold: #c9a84c;
    --cyan: #0891b2;
    --orange: #f0623e;
    --line: #0e2148;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
}

/* paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.hand {
    font-family: "Caveat", cursive;
    font-weight: 600;
    line-height: 1;
}

.mono-label {
    font-family: "Inter";
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 11px;
}

/* sketch wobble filter applied to drawn borders */
svg .rough {
    filter: url(#wob);
}

/* ---------- TOP BAR ---------- */
header {
    padding: 26px 0 8px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.brand-chip {
    background: var(--ink);
    border-radius: 12px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    box-shadow: 4px 5px 0 rgba(14, 33, 72, 0.16);
}

.brand-chip img {
    height: 34px;
    width: auto;
    display: block;
}

.reg {
    font-size: 11px;
    vertical-align: super;
    color: var(--gold);
    font-weight: 700;
    margin-left: 3px;
}

.topmeta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
}

.topmeta .mono-label {
    color: var(--ink-soft);
}

.brew-tag {
    font-family: "Caveat";
    font-weight: 700;
    font-size: 21px;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.brew-tag .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(240, 98, 62, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 98, 62, 0.55);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(240, 98, 62, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(240, 98, 62, 0);
    }
}

/* ---------- HERO ---------- */
.hero {
    padding: 40px 0 18px;
    position: relative;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.kicker .pin {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-family: "Inter";
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.04;
    font-size: clamp(38px, 6.6vw, 76px);
    max-width: 14ch;
}

.hero h1 .scribble {
    position: relative;
    color: var(--gold);
    white-space: nowrap;
}

.hero h1 .scribble svg {
    position: absolute;
    left: -4%;
    bottom: -14px;
    width: 108%;
    height: 22px;
}

.hero .sub {
    margin-top: 26px;
    font-size: clamp(16px, 2vw, 19px);
    max-width: 54ch;
    color: var(--ink-soft);
    font-weight: 400;
}

.hero .sub b {
    color: var(--ink);
    font-weight: 600;
}

.cup {
    position: absolute;
    right: -6px;
    top: 30px;
    width: 190px;
    height: 190px;
    opacity: 0.95;
}

@media (max-width: 820px) {
    .cup {
        position: static;
        width: 120px;
        height: 120px;
        margin-top: 24px;
    }
}

.slogan {
    margin-top: 30px;
    font-family: "Caveat";
    font-weight: 700;
    font-size: clamp(26px, 3.6vw, 38px);
    color: var(--ink);
}

.slogan em {
    font-style: normal;
    color: var(--gold);
}

/* divider doodle */
.divider {
    margin: 46px 0 8px;
    width: 100%;
    height: 26px;
    color: var(--ink);
    opacity: 0.55;
}

/* ---------- MENU / BREWS ---------- */
.menu-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 10px 0 8px;
    flex-wrap: wrap;
}

.menu-head .n {
    font-family: "Caveat";
    font-weight: 700;
    font-size: 30px;
    color: var(--gold);
}

.menu-head h2 {
    font-family: "Inter";
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: clamp(24px, 3.2vw, 34px);
}

.menu-head .note {
    font-family: "Caveat";
    font-weight: 600;
    font-size: 20px;
    color: var(--ink-soft);
    margin-left: auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 26px;
}

@media (max-width: 880px) {
    .cards {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
    }
}

.card {
    position: relative;
    background: #fffaf0;
    border-radius: 16px;
    padding: 24px 22px 26px;
    box-shadow: 5px 6px 0 rgba(14, 33, 72, 0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translate(-2px, -3px);
    box-shadow: 8px 11px 0 rgba(14, 33, 72, 0.16);
}

.card .border {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.card .logo-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(14, 33, 72, 0.1);
}

.card .logo-wrap img {
    max-height: 38px;
    max-width: 90%;
    width: auto;
    height: auto;
    display: block;
}

.card .role {
    font-family: "Caveat";
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    margin-top: 4px;
}

.card p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-top: 8px;
    min-height: 60px;
}

.card .status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    align-self: flex-start;
    font-family: "Inter";
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

.status.applied {
    background: rgba(201, 168, 76, 0.18);
    color: #8a6f1f;
}

.status.soon {
    background: rgba(8, 145, 178, 0.14);
    color: #0b6e87;
}

.status.aspir {
    background: rgba(240, 98, 62, 0.16);
    color: #c2492c;
}

.status .sd {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.accent-bar {
    position: absolute;
    left: 0;
    top: 24px;
    width: 5px;
    height: 54px;
    border-radius: 0 4px 4px 0;
}

.c-gold .accent-bar {
    background: var(--gold);
}

.c-cyan .accent-bar {
    background: var(--cyan);
}

.c-orange .accent-bar {
    background: var(--orange);
}

.tm {
    font-size: 10px;
    vertical-align: super;
    font-weight: 700;
    margin-left: 2px;
}

/* ---------- PRINCIPLES STRIP ---------- */
.principles {
    margin-top: 60px;
    background: var(--ink);
    border-radius: 22px;
    padding: 40px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.principles::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.18),
        transparent 70%
    );
}

.principles .mono-label {
    color: var(--gold);
}

.principles h3 {
    font-family: "Inter";
    font-weight: 800;
    font-size: clamp(22px, 3vw, 30px);
    margin: 10px 0 22px;
    letter-spacing: -0.01em;
    max-width: 20ch;
}

.pgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 760px) {
    .pgrid {
        grid-template-columns: 1fr;
    }
}

.pgrid .p .hand {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 4px;
}

.pgrid .p strong {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.pgrid .p span {
    font-size: 13px;
    color: #c5cde0;
    line-height: 1.5;
}

/* ---------- CONTACT / FOOTER ---------- */
footer {
    margin: 56px 0 40px;
}

.foot-card {
    position: relative;
    background: #fffaf0;
    border-radius: 18px;
    padding: 34px 32px;
    box-shadow: 5px 6px 0 rgba(14, 33, 72, 0.12);
}

.foot-top {
    display: flex;
    gap: 28px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.foot-brand .brand-chip {
    box-shadow: none;
    margin-bottom: 14px;
}

.foot-brand .tagline {
    font-family: "Caveat";
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
}

.contact-block {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 42ch;
}

.contact-block .lbl {
    font-family: "Inter";
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--gold);
    display: block;
    margin-bottom: 2px;
}

.contact-block b {
    color: var(--ink);
}

.contact-block a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1.5px solid var(--gold);
}

.legal {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed rgba(14, 33, 72, 0.25);
    font-size: 11.5px;
    color: var(--ink-soft);
    line-height: 1.65;
}

.legal .tm-legend {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    display: block;
}

.copyright {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--ink-soft);
}

.copyright .hand {
    font-size: 18px;
    color: var(--ink);
}

.fade {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.7s ease forwards;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

.d1 {
    animation-delay: 0.05s;
}

.d2 {
    animation-delay: 0.15s;
}

.d3 {
    animation-delay: 0.25s;
}

.d4 {
    animation-delay: 0.35s;
}

.d5 {
    animation-delay: 0.45s;
}

/* ---------- DOCUMENT PAGES (email disclaimer) ---------- */
.doc {
    margin: 24px 0 40px;
}

.doc h2 {
    font-family: "Inter";
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    margin: 26px 0 6px;
}

.doc h2:first-child {
    margin-top: 0;
}

.doc p {
    font-size: 14.5px;
    color: var(--ink-soft);
}

.doc p b {
    color: var(--ink);
}

.doc a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1.5px solid var(--gold);
}

.doc ul {
    margin: 10px 0 12px 20px;
}

.doc p,
.doc li {
    text-align: justify;
    hyphens: auto;
}

.doc li {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.doc p + p {
    margin-top: 10px;
}

/* plain white / black theme for document pages */
.doc-page {
    --paper: #ffffff;
    --ink: #000000;
    --ink-soft: #000000;
    background: #fff;
    color: #000;
}

.doc-page::before {
    display: none;
}

.doc-page .hero .sub,
.doc-page .doc h2 {
    color: #000;
}

.doc-page .foot-card {
    background: #fff;
    box-shadow: none;
    padding: 0;
}

.doc-page .legal {
    border-top-color: rgba(0, 0, 0, 0.25);
}

/* keep the brand chip identical to the home page */
.doc-page .brand-chip {
    background: #0e2148;
    box-shadow: 4px 5px 0 rgba(14, 33, 72, 0.16);
}
