:root {
    --text: #1d1d1f;
    --muted: #6e6e73;
    --bg: #f5f5f7;
    --card: #fff;
    --accent: #2f5fd0;
    --error: #b3261e;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem; }
a { color: var(--accent); }

.site-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem 1.25rem; background: var(--card); border-bottom: 1px solid #e3e3e8;
}
.brand { font-weight: 600; color: var(--text); text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.25rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
nav form { margin: 0; }

/* Dark blue gradient behind the login page and full-design pages (screen-high, stays put while scrolling). */
:root:has(body.bare), :root:has(.login) { background: #01112b; }
body:has(.login), body.bare {
    min-height: 100vh; /* fallback for browsers without dvh */
    min-height: 100dvh;
    background: linear-gradient(to bottom, #01112b, #004055) fixed;
}
/* --space: gap above the logo (main's 2rem top padding + margin) and, equally, below it. */
.login-title {
    --space: calc(2rem + 6vh);
    max-width: 10rem; margin: calc(var(--space) - 2rem) auto var(--space);
}
.login-title img { display: block; width: 100%; height: auto; }
/* Mobile: the gap is half the logo's height (≈3.4rem). */
@media (max-width: 40rem) {
    .login-title { --space: calc(10rem * 340 / 499 / 2); }
}

/* Login box: frosted glass over the gradient. */
.login {
    max-width: 22rem; margin: 0 auto; padding: 2rem;
    color: #fdfff0; font-family: Inter, system-ui, sans-serif;
    background: rgb(255 255 255 / 0.08);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.login .field { display: grid; gap: 1.4rem; }
.login label {
    color: rgb(253 255 240 / 0.9); text-align: center;
    font-family: Montserrat, system-ui, sans-serif; font-size: 1.15rem; font-weight: 300;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.login button {
    background: #fdfff0; color: #01112b; border-radius: 999px;
    font-family: Montserrat, system-ui, sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
}
.login button:hover { background: #fff; }
.login input {
    color: #fdfff0; background: rgb(255 255 255 / 0.08); text-align: center;
    border-color: rgb(255 255 255 / 0.25);
}
.login input:focus { outline: 2px solid rgb(253 255 240 / 0.6); outline-offset: 1px; }

/* Eye button inside the code field, on the right. Equal padding on both
   sides of the input keeps the centered text truly centered. */
.code-field { position: relative; }
.code-field input { width: 100%; padding-inline: 2.75rem; }
.login .reveal {
    position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%);
    display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0;
    background: none; color: rgb(253 255 240 / 0.6); border-radius: 6px;
}
.login .reveal[hidden] { display: none; }
.login .reveal:hover { background: rgb(255 255 255 / 0.08); color: #fdfff0; }
.login .reveal:focus-visible { outline: 2px solid rgb(253 255 240 / 0.6); }
.reveal svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reveal .eye-closed, .reveal[aria-pressed="true"] .eye-open { display: none; }
.reveal[aria-pressed="true"] .eye-closed { display: block; }
.login .error { color: #ffb4ab; }
.login-message { margin: 0 0 1.5rem; text-align: center; }
.login .back-link {
    display: block; padding: 0.65rem 1rem; border-radius: 999px; text-align: center; text-decoration: none;
    background: #fdfff0; color: #01112b;
    font-family: Montserrat, system-ui, sans-serif; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
}
.login .back-link:hover { background: #fff; }
.login form { display: grid; gap: 2rem; }
label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }
input {
    font: inherit; color: var(--text); padding: 0.6rem 0.7rem;
    border: 1px solid #c7c7cc; border-radius: 8px;
}
button {
    font: inherit; padding: 0.65rem 1rem; border: 0; border-radius: 8px;
    background: var(--accent); color: #fff; cursor: pointer;
}
button.link { padding: 0; background: none; color: var(--accent); }
.error { color: var(--error); margin: 0 0 1rem; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ================================================================ Book your flights
   Mobile-first; from 48rem the page becomes a centered column. */
main:has(> .trip) { max-width: none; padding: 0; }

.trip {
    --cream: #fbeee5;
    --tile: #f1e2d3;
    --gold: #a8814f; /* dark enough for the white ticks (3.5:1) */
    --ink: #123843;
    --teal: #0f4452;
    max-width: 45rem; margin: 0 auto; overflow: hidden; /* 720px */
    background: var(--cream); color: var(--ink);
    font-family: Inter, system-ui, sans-serif; font-size: 1rem; text-align: center;
}
.icon-sprite { display: none; }
.trip svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trip h2 { margin: 0; font-weight: inherit; }
.trip p { margin: 0; }

/* Shared type styles */
.trip-rule, .trip-caps, .trip-caps-lg {
    font-family: Montserrat, system-ui, sans-serif; text-transform: uppercase;
}
.trip-rule {
    display: flex; align-items: center; justify-content: center; gap: 0.9em;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.3em;
}
.trip-rule::before, .trip-rule::after { content: ""; flex: 1 1 0; max-width: 4.5rem; min-width: 1rem; height: 1px; background: currentColor; opacity: 0.45; }
.trip-rule > span { flex: none; max-width: calc(100% - 3.8rem); }
.trip-rule-dark { color: var(--ink); }
.trip-caps { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-wrap: balance; }
.trip-caps-lg { font-size: 1.05rem; font-weight: 500; letter-spacing: 0.16em; line-height: 1.35; }
/* Brittany Signature has tall flourishes: generous line height keeps them off neighbouring lines. */
.trip-script { font-family: "Brittany Signature", cursive; font-size: 2.2rem; line-height: 1.45; }
.trip-serif { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; line-height: 1.1; color: var(--ink); }
.trip-italic { font-style: italic; color: rgb(18 56 67 / 0.85); }

/* Hero: photo with the title in its sky, curved edge into the cream page */
.trip-hero {
    position: relative; display: grid; justify-items: center; align-content: start;
    height: 24rem; color: var(--ink);
}
/* The photo fills the hero from the top; the sides are cropped on narrow screens.
   The hero is tall enough for the title to sit in the photo's sky. */
.trip-hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 32% 0;
}
.trip-hero::after { z-index: 1;
    content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 2.4rem;
    background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.trip-hero-text { position: relative; z-index: 1; padding: 1.4rem 1rem 0; display: grid; justify-items: center; gap: 0.35rem; }
.trip-logo {
    width: 7rem; aspect-ratio: 499 / 340; margin: 0.1rem 0;
    background: var(--ink);
    -webkit-mask: url(forty-club.svg) center / contain no-repeat;
    mask: url(forty-club.svg) center / contain no-repeat;
}
.trip-hero .trip-rule { width: 100%; min-width: 15rem; }
.trip-hero .trip-script { font-size: 1.8rem; line-height: 1.3; }

/* Countdown */
.trip-countdown { display: grid; gap: 0.9rem; padding: 0.75rem 1.25rem 2rem; }
.trip-countdown .trip-rule { font-size: 0.72rem; letter-spacing: 0.2em; }
.trip-countdown h2 { font-size: 2.6rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.4rem; }
.countdown div {
    display: grid; padding: 0.7rem 0.25rem 0.6rem; border-radius: 6px; background: var(--tile);
    font-family: Montserrat, system-ui, sans-serif; font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.countdown span {
    font-size: 2rem; font-weight: 300; letter-spacing: 0.04em; line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* Flight details / Once you're there */
.trip-columns { display: grid; margin: 0 1.25rem; border-top: 1px solid rgb(18 56 67 / 0.15); }
.trip-col { display: grid; justify-items: center; align-content: start; gap: 0.6rem; padding: 2rem 0; }
.trip-col + .trip-col { border-top: 1px solid rgb(18 56 67 / 0.15); }
.trip-col-icon { width: 2.6rem; height: 2.6rem; stroke-width: 1.2; }
.trip-col h2 { font-size: 2.1rem; }
.trip-col > p { max-width: 17rem; line-height: 1.45; }
.flight-facts {
    width: 100%; max-width: 22rem; margin: 0.6rem 0 0; padding: 0.3rem 1rem;
    border-radius: 8px; background: var(--tile); text-align: left;
}
.flight-facts div {
    display: grid; grid-template-columns: 1.5rem 1fr; column-gap: 0.9rem; align-items: center;
    padding: 0.65rem 0; font-size: 0.92rem; line-height: 1.35;
}
.flight-facts div + div { border-top: 1px solid rgb(18 56 67 / 0.1); }
.flight-facts svg { grid-row: span 2; width: 1.4rem; height: 1.4rem; }
.flight-facts dt { font-weight: 600; }
.flight-facts dd { margin: 0; }
.flight-leg { display: block; margin-top: 0.3rem; }
.flight-leg b { display: block; font-weight: 500; }
.ryanair-link {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem;
    padding: 0.6rem 1.1rem; border: 1px solid var(--ink); border-radius: 999px;
    color: var(--ink); text-decoration: none;
    font-family: Montserrat, system-ui, sans-serif; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.ryanair-link:hover { background: var(--ink); color: #fdfff0; }
.ryanair-link svg { width: 1rem; height: 1rem; }
.checklist { display: grid; gap: 0.8rem; margin: 0.4rem 0 0; padding: 0; list-style: none; text-align: left; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; column-gap: 0.8rem; align-items: center; line-height: 1.35; }
.checklist small { grid-column: 2; font-size: 0.85rem; opacity: 0.8; }
.checklist svg {
    grid-row: span 2; width: 1.6rem; height: 1.6rem; padding: 0.2rem;
    border-radius: 50%; background: var(--gold); color: #fff; stroke-width: 2.4;
}

/* Cards: suitcase and call to action */
.trip-card { margin: 0 1.25rem 1rem; padding: 1.6rem 1.25rem; border-radius: 14px; background: var(--tile); }
.trip-suitcase { display: grid; justify-items: center; gap: 1rem; }
.trip-suitcase > svg { width: 3.5rem; height: 3.5rem; stroke-width: 1.3; }
.trip-suitcase .trip-italic { margin-top: 0.4rem; }
.trip-cta { display: grid; justify-items: center; gap: 1.1rem; }
.trip-cta .trip-caps { font-size: 0.8rem; font-weight: 600; }
.cta-button {
    display: flex; align-items: center; justify-content: center; gap: 0.9rem;
    width: 100%; max-width: 26rem; padding: 1.05rem 1.25rem; border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), #0a2c38); color: #fdfff0;
    font-family: Montserrat, system-ui, sans-serif; font-size: clamp(0.8rem, 3.6vw, 0.95rem); font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 6px 18px rgb(10 44 56 / 0.25);
}
.cta-button:hover { background: linear-gradient(135deg, #135566, #0d3746); }
.cta-button svg { width: 1.4rem; height: 1.4rem; flex: none; }

.trip-footer { display: grid; gap: 1rem; padding: 1rem 1.25rem 2rem; }
.trip-italic-caps { font-size: 0.72rem; font-style: italic; letter-spacing: 0.16em; }
.trip-footer .link { justify-self: center; font-size: 0.8rem; color: rgb(18 56 67 / 0.8); text-decoration: underline; }

/* Wider screens: two columns, roomier type, the page as a centered column */
@media (min-width: 34rem) {
    .trip-columns { grid-template-columns: 1fr 1fr; }
    .trip-col { padding: 2rem 1rem; }
    .trip-col + .trip-col { border-top: 0; border-left: 1px solid rgb(18 56 67 / 0.15); }
    .checklist { margin-top: 1.75rem; gap: 1.4rem; }
    .trip-suitcase { grid-template-columns: auto 1fr; text-align: center; }
    .trip-suitcase > svg { padding-right: 1.25rem; border-right: 1px solid rgb(18 56 67 / 0.2); box-sizing: content-box; }
}
@media (min-width: 48rem) {
    .trip { margin: 2rem auto; border-radius: 18px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.45); }
    .trip-hero { height: 30rem; }
    .trip-hero-text { padding-top: 2.25rem; gap: 0.5rem; }
    .trip-logo { width: 9rem; }
    .trip-hero .trip-script { font-size: 2.1rem; }
}
