/* =====================================================================
   SUMI MATCHA — site styles

   Almost everything you'll want to tweak lives in the :root block below.
   Change a value there once and it updates everywhere on the site.
   ===================================================================== */

:root {
    /* ---- COLORS ----
       Change these to re-theme the whole site. */
    --color-background: #e9d4d1;   /* soft dusty pink page background */
    --color-text:       #5c4a47;   /* main warm brown text            */
    --color-muted:      #8a7470;   /* lighter text (subtext, links)   */
    --color-accent:     #6f7d4e;   /* matcha green for buttons/links  */
    --color-accent-ink: #ffffff;   /* text drawn on top of the accent */
    --color-surface:    #ffffff;   /* input box background            */
    --color-error:      #b1554f;   /* validation error text           */

    /* ---- FONTS ----
       The font *families* are loaded in Pages/Shared/_Layout.cshtml.
       If you change a family here, update the <link> there too. */
    --font-heading: "Caveat", "Segoe Script", cursive;       /* handwritten */
    --font-body:    "Quicksand", system-ui, sans-serif;      /* soft body   */

    --font-size-heading: clamp(3rem, 12vw, 6rem);
    --font-size-subtext: clamp(1.25rem, 4vw, 2rem);

    /* ---- LAYOUT ----  (spacing + sizing knobs) */
    --max-width: 640px;
    --radius:    999px;
    --gap:       0.75rem;
}

/* ---- Base / reset ---------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* ---- Top navigation bar ---------------------------------------------- */
.site-header {
    padding: 1.5rem 2rem;
}

.brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--color-text);
}

/* ---- Centered hero area ---------------------------------------------- */
.site-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.hero {
    width: 100%;
    max-width: var(--max-width);
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: var(--font-size-heading);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 0.25rem;
}

.hero-subtext {
    font-size: var(--font-size-subtext);
    font-weight: 500;
    color: var(--color-muted);
    margin: 0 0 1.75rem;
}

/* ---- Email signup form ----------------------------------------------- */
.signup-form {
    margin: 0 auto;
    max-width: 480px;
}

.signup-row {
    display: flex;
    gap: var(--gap);
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0.9rem 1.25rem;
    border: 1px solid rgba(92, 74, 71, 0.25);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-input::placeholder {
    color: rgba(92, 74, 71, 0.45);
}

.email-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(111, 125, 78, 0.2);
}

.signup-button {
    flex: 0 0 auto;
    padding: 0.9rem 1.75rem;
    border: none;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: var(--color-accent-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.15s ease;
}

.signup-button:hover {
    opacity: 0.9;
}

.signup-button:active {
    transform: translateY(1px);
}

.field-error {
    display: block;
    margin-top: 0.75rem;
    color: var(--color-error);
    font-size: 0.95rem;
}

/* ---- Contact page ---------------------------------------------------- */
.contact-email {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* ---- Bottom-right footer links --------------------------------------- */
.site-footer {
    padding: 1.5rem 2rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

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

/* Logo links (Instagram, TikTok) — the SVG inherits the link color */
.footer-icon {
    display: inline-flex;
    align-items: center;
}

.footer-icon svg {
    display: block;
}

/* ---- Small screens --------------------------------------------------- */
@media (max-width: 480px) {
    .site-header,
    .site-footer {
        padding: 1.25rem 1.25rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1.25rem;
    }
}
