/* ==========================================================================
   Sobremesa — core: tokens, reset, base typography, utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
    --ink: #241522;
    --plum: #663366;
    --berry: #a8327e;
    --orchid: #cc99cc;
    --silver: #cccccc;
    --paper: #f8f6fa;
    --paper-2: #efe9f1;
    --line: #e0d6e4;
    --muted: #6a5b68;
    --white: #ffffff;

    --shadow-soft: 0 14px 40px rgba(36, 21, 34, 0.10);
    --shadow-lift: 0 28px 70px rgba(36, 21, 34, 0.18);
    --accent-soft: #d9b8d9;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

    --container: 75rem;
    --gutter: 1.5rem;
    --radius: 0.25rem;
    --radius-lg: 0.875rem;
}

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

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

body {
    margin: 0;
    background-color: var(--paper);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--plum);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--berry);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.6em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.4rem);
}

h2 {
    font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.5rem);
}

h3 {
    font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
}

p {
    margin: 0 0 1.1rem;
}

ul,
ol {
    margin: 0 0 1.1rem;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   Base interactive
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 3px solid var(--berry);
    outline-offset: 3px;
}

button {
    font: inherit;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-tint {
    background-color: var(--paper-2);
}

.section-dark {
    background-color: var(--ink);
    color: var(--paper);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--berry);
}

.lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    background-color: var(--berry);
    border: 1px solid var(--berry);
    border-radius: var(--radius);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    color: var(--white);
    background-color: #8d2769;
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--ink);
    background-color: transparent;
    border-color: var(--silver);
}

.btn-ghost:hover {
    color: var(--ink);
    background-color: var(--paper-2);
}

/* --------------------------------------------------------------------------
   Accessibility utilities
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-nav {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 300;
    padding: 0.7rem 1.1rem;
    color: var(--white);
    background-color: var(--ink);
    border-radius: var(--radius);
    transition: top 0.2s ease;
}

.skip-nav:focus {
    top: 1rem;
    color: var(--white);
}

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

    .js-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
