/* LoversSwitzerland: the classic look, shared by every page that uses the Site layout.
   Playfair Display for headlines, Archivo for the rest, five colours, one kind of edge: a hairline with a soft shadow.
   Page sections live in their own file (home.css). Motion is CSS only and pauses when it is off screen (site.js). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Playfair Display: the serif for headlines (licence in fonts/OFL-playfair.txt) */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/playfair-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/playfair-latin-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/playfair-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/playfair-latin-ext-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F7F3EC;
  --line: rgba(23, 19, 14, .14);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --card: #FFFDF7;
  --ink: #17130E;
  --text: #3B342B;
  --muted: #6B6258;
  --red: #D91A24;
  --red-deep: #A90F18;
  --red-tint: #FBE3E1;
  --navy: #142236;
  --night: #0C1522;
  --lake: #CFDDE2;
  --edge: 1px solid var(--line);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sec: 120px;
  --gutter: 32px;
  --top: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 860px) {
  :root { --sec: 72px; --gutter: 20px; --top: 64px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--red); }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border: var(--edge); border-radius: 6px; background: var(--card); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; border-top: var(--edge); }
.sec-head { margin-bottom: 56px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.h2 { font-size: 56px; line-height: 1.04; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.sub { margin-top: 16px; font-size: 20px; line-height: 1.5; color: var(--text); max-width: 640px; }
@media (max-width: 860px) {
  .sec-head { margin-bottom: 36px; }
  .h2 { font-size: 38px; }
  .sub { font-size: 18px; }
}

/* ---------- pieces ---------- */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border: var(--edge); border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28);
  font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(23, 19, 14, .35); }
.btn:active { transform: translateY(0); box-shadow: 0 0 0 var(--ink); }
.btn { letter-spacing: .01em; }
.btn-red, .btn-red:hover { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-white, .btn-white:hover { background: var(--card); border-color: rgba(23, 19, 14, .3); color: var(--ink); }
.btn-white:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); }
.btn-sm:hover { box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); }
.btn-sm:active { transform: translateY(0); }
.btn-icon { width: 44px; padding: 0; }
.card { background: var(--card); border: var(--edge); border-radius: 10px; box-shadow: 0 18px 40px -22px rgba(23, 19, 14, .35); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--red-tint); color: var(--red-deep); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.chip { display: inline-flex; padding: 5px 11px; border-radius: 999px; border: 1.5px solid rgba(23, 19, 14, .25); font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: var(--edge); border-radius: 999px; background: var(--card); box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); font-size: 16px; font-weight: 700; }
/* the highlighted words in a headline: the serif in italic, in Swiss red */
.mark { display: inline; font-family: var(--display); font-style: italic; font-weight: 500; color: var(--red); }
.pill { box-shadow: none; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
@media (max-width: 860px) {
  .pill { padding: 7px 14px; font-size: 12px; }
}

/* the mountain edge on top of the red and navy bands: drawn once, never moves */
.ridge { position: absolute; left: 0; top: -88px; width: 100%; height: 90px; overflow: visible; pointer-events: none; }
@media (max-width: 860px) { .ridge { height: 46px; top: -45px; } }

/* ---------- the top bar: the same on every page, solid from the start ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: var(--edge); }
.top-in { display: flex; align-items: center; gap: 32px; height: var(--top); }
.top-logo { display: flex; }
.top-logo img { height: 18px; width: auto; }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.navlink { padding: 10px 4px; font-weight: 600; font-size: 16px; text-decoration: none; }
.navlink[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.top-buy { margin-left: 8px; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--card); }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 860px) {
  .top-in { gap: 10px; }
  .top-logo img { height: 13px; }
  .top-nav { display: none; }
  .top-buy { margin-left: auto; padding: 0 14px; font-size: 14px; box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); }
  .menu-btn { display: inline-flex; box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); }
}

/* the phone menu: a sheet under the top bar */
.menu { position: fixed; left: 0; right: 0; top: var(--top); bottom: 0; z-index: 49; flex-direction: column; overflow-y: auto; padding: 12px var(--gutter) 32px; background: var(--paper); }
.menu:not([hidden]) { display: flex; }
html.menu-open { overflow: hidden; }
.menu > * { animation: drop .45s var(--ease) both; }
.menu > :nth-child(2) { animation-delay: .06s; }
.menu > :nth-child(3) { animation-delay: .12s; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.mlink { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: var(--edge); font-size: 28px; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.mlink[aria-current="page"]::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.mlink[aria-current="page"] .ico { display: none; }
.menu-more { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; }
.menu-hello { margin-top: auto; padding-top: 32px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.socials { display: flex; gap: 12px; margin-top: 12px; }
.social { width: 48px; height: 48px; display: grid; place-items: center; border: var(--edge); border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); }
@media (min-width: 861px) { .menu { display: none !important; } }

/* ---------- footer: deep navy, short columns, social links as icons ---------- */
.foot { background: var(--night); color: #AEB9CC; border-top: 2px solid rgba(255, 253, 247, .12); padding: 72px 0 36px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-logo { height: 17px; width: auto; }
.foot-about { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.foot .socials { gap: 10px; margin-top: 24px; }
.foot .social { width: 44px; height: 44px; background: transparent; color: var(--card); border-color: rgba(255, 253, 247, .4); box-shadow: none; }
.foot .social:hover { border-color: var(--card); background: rgba(255, 253, 247, .08); color: var(--card); }
.foot-h { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8796AF; }
.flink { display: block; padding: 5px 0; color: #E3E9F2; font-size: 15px; text-decoration: none; }
.flink:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.foot-end { margin-top: 56px; padding-top: 24px; border-top: 2px solid rgba(255, 253, 247, .12); font-size: 14px; font-weight: 600; color: #8796AF; }
@media (max-width: 860px) {
  .foot { padding: 56px 0 120px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 24px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- the buy bar: phones only, between the first scene and the offer ---------- */
.buybar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--card); border: var(--edge); border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); transform: translateY(150%); transition: transform .35s var(--ease); }
.buybar.show { transform: none; }
.bb-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; color: var(--text); }
.bb-text b { font-size: 15px; font-weight: 700; color: var(--ink); }
.buybar .btn { margin-left: auto; }
@media (max-width: 860px) { .buybar { display: flex; } }

/* ---------- the loading screen: home, first visit only, about 1.3 seconds ---------- */
.loader { display: none; }
html.intro .loader {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(23, 19, 14, .25); pointer-events: none;
  animation: ld-lift .45s cubic-bezier(.7, 0, .2, 1) .85s forwards;
}
@keyframes ld-lift { to { transform: translateY(-104%); visibility: hidden; } }
.ld-logo { height: 32px; width: auto; animation: ld-write .4s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes ld-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* the line: a hairline rail, three small stations, a red line drawn across and a small red dot for the train */
.ld-line { position: relative; width: 320px; max-width: 76vw; height: 18px; }
.ld-rail { position: absolute; left: 6px; right: 6px; top: 8.5px; height: 1px; background: rgba(23, 19, 14, .22); }
.ld-fill { position: absolute; left: 6px; right: 6px; top: 8px; height: 2px; background: var(--red); transform-origin: left; animation: ld-fill .45s cubic-bezier(.65, 0, .35, 1) .3s both; }
@keyframes ld-fill { from { transform: scaleX(0); } }
.ld-stop { position: absolute; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--red); }
.ld-train { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(217, 26, 36, .15); animation: ld-train .45s cubic-bezier(.65, 0, .35, 1) .3s both; }
@keyframes ld-train { from { left: 0; } to { left: calc(100% - 14px); } }
.ld-cap { font-family: var(--display); font-style: italic; font-size: 20px; font-weight: 400; color: var(--text); animation: ld-cap .25s ease .4s both; }
@keyframes ld-cap { from { opacity: 0; transform: translateY(8px); } }

/* =================== sections shared by several pages =================== */

/* ---------- postcards: the ready days (home, Travel Scripts) ---------- */
.six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post { display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 22px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.post:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(23, 19, 14, .35); }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: var(--edge); }
.post .tag { align-self: flex-start; margin: 4px 6px 0; }
.post h3 { margin: 0 6px; font-size: 22px; line-height: 1.15; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.post-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 6px; }
.post-more { justify-content: center; gap: 12px; padding: 32px; background: var(--red); color: #FFFFFF; }
.post-more:hover { color: #FFFFFF; }
.post-more b { font-size: 96px; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; line-height: .9; }
.post-more span { font-size: 24px; font-weight: 700; line-height: 1.15; }
.post-more .ico { width: 32px; height: 32px; }

/* ---------- messages from Codex owners, four side by side (home, Our story) ---------- */
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.dm { padding: 8px; }
.dm img { width: 100%; border-radius: 6px; }
.dm:nth-child(1) { transform: none; }
.dm:nth-child(2) { margin-top: 24px; transform: none; }
.dm:nth-child(3) { transform: none; }
.dm:nth-child(4) { margin-top: 24px; transform: none; }

/* ---------- the offer on a navy band, the last stop of a page (Offer.astro) ---------- */
.offer { position: relative; background: var(--navy); color: var(--card); padding: var(--sec) 0; }
.final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.offer .mark { color: #FF8A8F; }
.price { margin-top: 36px; font-size: 96px; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; line-height: .9; }
.price sup { font-size: .38em; vertical-align: top; position: relative; top: .2em; }
.price s { margin-left: 16px; font-size: .32em; font-weight: 600; color: #A9B6C9; letter-spacing: 0; }
.checks { list-style: none; margin-top: 32px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; color: #DCE3EE; }
.checks li { display: flex; gap: 12px; }
.checks .ico { color: #FF5A62; margin-top: 3px; }
.offer-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.offer .btn { box-shadow: none; border-color: var(--paper); }
.offer .btn:hover { box-shadow: none; }
.offer-sample { color: var(--card); font-weight: 600; font-size: 17px; text-underline-offset: 5px; }
.offer-small { margin-top: 24px; font-size: 14px; font-weight: 600; color: #A9B6C9; }
.offer-pack { width: 100%; border-radius: 10px; border: 2px solid var(--paper); }

@media (max-width: 1180px) {
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .six, .final { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .price { font-size: 72px; }
}
@media (max-width: 640px) {
  .four { gap: 16px; }
}

/* ---------- light snow: a few flakes that only slide, which the browser draws cheaply. Put it in a data-anim part so it stops off screen. ---------- */
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.flake { position: absolute; top: -24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1.5px rgba(23, 19, 14, .14); animation: fall linear infinite; }
@keyframes fall { to { transform: translate3d(var(--dx, 30px), var(--fall, 1040px), 0); } }
@media (max-width: 860px) { .snow { --fall: 1500px; } }
@media (prefers-reduced-motion: reduce) { .flake { display: none; } }

/* ---------- motion rules ---------- */
.rise { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
html.intro .rise { animation-delay: calc(var(--d, 0s) + .95s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
/* anything marked data-anim stops moving while it is off screen (site.js adds .paused) */
.paused, .paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
