/* Generated by tools/make-brand-css.py from css/postcard.css and css/brand-coast.style.css. Edit those, then run it. */

/* ---------- coast: sizes x0.78 ---------- */
html[data-type="coast"] .intro__word { font-size: clamp(49.92px, 8.58vw, 131px); }
html[data-type="coast"] .brand { font-size: 23.4px; }
html[data-type="coast"] .h2 { font-size: clamp(37.44px, 4.992vw, 81.12px); }
html[data-type="coast"] .paper-card .h2 { font-size: clamp(34.32px, 3.822vw, 63.96px); }
html[data-type="coast"] .hero__title { font-size: clamp(43.68px, 5.616vw, 99.84px); }
html[data-type="coast"] .hero-stamp .pstamp__price { font-size: 25.74px; }
html[data-type="coast"] .hero-pm .pm__mid { font-size: 21.06px; }
html[data-type="coast"] .sunset { font-size: clamp(37.44px, 5.148vw, 85.8px); }
html[data-type="coast"] .pstamp__price { font-size: 19.5px; }
html[data-type="coast"] .pm__mid { font-size: 18.72px; }
html[data-type="coast"] .cast__name { font-size: 18.72px; }
html[data-type="coast"] .pkg__title { font-size: 17.94px; }
html[data-type="coast"] .pkg .pstamp__price { font-size: 15.6px; }
html[data-type="coast"] .dial__month { font-size: clamp(35.88px, 4.68vh, 48.36px); }
html[data-type="coast"] .weather__mark .pm__mid { font-size: 19.5px; }
html[data-type="coast"] .desk__head .h2 { font-size: clamp(35.88px, 3.744vw, 62.4px); }
html[data-type="coast"] .dcard__greet b { font-size: clamp(26.52px, 2.652vw, 43.68px); }
html[data-type="coast"] .dcard .pstamp__price { font-size: 16.38px; }
html[data-type="coast"] .combo-intro .h2 { font-size: clamp(49.92px, 6.708vw, 109.2px); }
html[data-type="coast"] .spread__title { font-size: clamp(37.44px, 3.9vw, 65.52px); }
html[data-type="coast"] .scard__name { font-size: clamp(20.28px, 1.872vw, 31.2px); }
html[data-type="coast"] .spread .pstamp__price { font-size: 19.5px; }
html[data-type="coast"] .peek__name { font-size: clamp(62.4px, 10.14vw, 171.6px); }
html[data-type="coast"] .peek__kind { font-size: clamp(18.72px, 1.872vw, 29.64px); }
html[data-type="coast"] .peek__stamp .pstamp__price { font-size: 23.4px; }
html[data-type="coast"] .book__stamps .pstamp__price { font-size: 22.62px; }
html[data-type="coast"] .field__v { font-size: 24.96px; }
html[data-type="coast"] .book__total b { font-size: 23.4px; }
html[data-type="coast"] .foot__brand { font-size: 26.52px; }
html[data-type="coast"] .foot__line { font-size: clamp(34.32px, 4.68vw, 70.2px); }

/* ---------- Clean Coast: Red Hat Display + Red Hat Text, no serif at all ---------- */
html[data-type="coast"] {
  --display: "Red Hat Display", system-ui, sans-serif;
  --body: "Red Hat Text", system-ui, sans-serif;
}
html[data-type="coast"] .hero__title, html[data-type="coast"] .h2, html[data-type="coast"] .sunset,
html[data-type="coast"] .foot__line, html[data-type="coast"] .spread__title, html[data-type="coast"] .peek__name {
  font-weight: 800; letter-spacing: -.035em; line-height: 1;
}
html[data-type="coast"] .hero__line--i, html[data-type="coast"] .h2 em, html[data-type="coast"] .sunset em,
html[data-type="coast"] .foot__line em, html[data-type="coast"] .hero__title em { font-weight: 500; font-style: italic; letter-spacing: -.025em; }
html[data-type="coast"] .cast__name, html[data-type="coast"] .scard__name, html[data-type="coast"] .pstamp__price,
html[data-type="coast"] .dial__month, html[data-type="coast"] .pkg__title { font-weight: 700; font-style: normal; letter-spacing: -.02em; }
html[data-type="coast"] .btn { font-weight: 700; }

/* ---------- the headline: light drifting slowly through the letters (Sam, Nov 17).
   Line 1 is the lagoon (white, pale aqua, a band of turquoise), line 2 the coral. Each line's gradient is three
   times as wide as its words and slides across them over 12 s and back, so the colour moves like light on water.
   The colour sits in the type (background-clip: text) on .hero__ink; the shadow is a drop-shadow on the parent,
   because a text-shadow would show through see-through letters and Safari loses the clip if the filter is on the same span. */
html[data-type] .hero__ink {
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  background-size: 300% 100%; background-position: 0% 50%; text-shadow: none;
  padding: 0 .12em; margin: 0 -.12em;   /* room for the italic's overhang: the colour is only painted inside the box */
  animation: hl-drift 12s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
html[data-type] .hero__ink em { text-shadow: none; -webkit-text-fill-color: transparent; }
html[data-type] .hero__line:not(.hero__line--i) .hero__ink {
  background-image: linear-gradient(100deg, #fff 0%, #effcfc 12%, #bdeef1 24%, #8fdbe4 33%, #d4f5f6 44%, #fff 54%, #e6f9fa 66%, #a6e5ea 78%, #ecfbfb 90%, #fff 100%);
}
html[data-type] .hero__line--i .hero__ink {
  background-image: linear-gradient(100deg, #ff9583 0%, #ffb39b 13%, #ffc7ae 22%, #ff8d7a 36%, #ff7a69 45%, #ffa48e 58%, #ffbea6 70%, #ff8f7c 84%, #ff9583 100%);
  animation-delay: -5s;   /* the two lines never shine in step */
}
html[data-type] .hero__line-in { width: fit-content; text-shadow: none; filter: drop-shadow(0 2px 14px rgba(8, 60, 90, .26)); }
html[data-type] .hero.is-away .hero__ink { animation-play-state: paused; }
@keyframes hl-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (max-width: 760px) {
  /* a phone sets the headline in ink on the pale shallows: the same drift in deep lagoon blues and a stronger coral */
  html[data-type] .hero__line:not(.hero__line--i) .hero__ink {
    background-image: linear-gradient(100deg, #0f3b40 0%, #0f4f63 14%, #126f8c 27%, #1b8eab 36%, #0f5b70 48%, #0f3b40 58%, #0f566b 70%, #1a83a2 82%, #0f4a58 92%, #0f3b40 100%);
  }
  html[data-type] .hero__line--i .hero__ink {
    background-image: linear-gradient(100deg, #f0433b 0%, #ff6a4d 15%, #ff8a5c 25%, #f2503f 38%, #e2343c 47%, #ff6248 60%, #ff8257 72%, #ef4a3d 86%, #f0433b 100%);
  }
  html[data-type] .hero__line-in { filter: none; }
}
@media (prefers-reduced-motion: reduce) { html[data-type] .hero__ink { animation: none; background-position: 30% 50%; } }

/* ---------- the logo: a sun setting into the sea, and the name in bold italic (inline SVG in the nav and the footer) ---------- */
html[data-type] .brand { display: inline-flex; align-items: center; line-height: 0; }
html[data-type] .brand svg, html[data-type] .foot__brand svg { display: block; height: 40px; width: auto; overflow: visible; }
html[data-type] .foot__brand svg { height: 54px; }
.logo text { fill: currentColor; }
.logo .sunfill { fill: #FFB547; }
.logo .bar { stroke: currentColor; stroke-linecap: round; }

/* ---------- the nav button, in the hero too ---------- */
html[data-type] .nav.nav--hero .nav__cta { display: inline-flex; }
html[data-type] .nav__cta { align-items: center; gap: 10px; white-space: nowrap; display: inline-flex; }
/* the button itself is drawn by the boarding-pass nav (js/nav.js, css/nav.css) */

/* ---------- the nav links: one frosted glass tab bar in the middle, a white pill slides to the chapter you're in
   (and to the link under the mouse). On the cream chapters the glass turns to a faint ink tint and the pill to ink. */
html[data-type] .nav { gap: 18px; }
html[data-type] .nav::before { opacity: .55; }
html[data-type] .nav__links {
  position: relative; display: flex; gap: 2px; margin-left: auto; padding: 5px; border-radius: 99px;
  font-family: var(--body); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 22px rgba(8, 45, 80, .1);
  transition: background .45s ease, border-color .45s ease, box-shadow .45s ease;
}
/* optical alignment (Sam, Nov 17: the tab bar and the button felt too high next to the logo). The logo's sun, name and
   bars sit low in its box (their middle is ~5 px below the box's), so these two come down to line up with what you see */
html[data-type] .nav { --nav-drop: 6px; }
html[data-type] .nav__links, html[data-type] .nav__cta { transform: translateY(var(--nav-drop)); }
@media (min-width: 1100px) {
  html[data-type] .nav__links { position: absolute; left: 50%; transform: translate(-50%, var(--nav-drop)); margin: 0; }
  html[data-type] .nav__cta { margin-left: auto; }
}
html[data-type] .nav__links a {
  position: relative; z-index: 1; padding: 9px 17px; border-radius: 99px; white-space: nowrap; color: inherit;
  transition: color .35s ease;
}
html[data-type] .nav__links a.is-on { color: var(--ink); }
.nav__pill {
  position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: 0; border-radius: 99px; pointer-events: none;
  background: rgba(255, 255, 255, .94); box-shadow: 0 3px 12px rgba(8, 45, 80, .16), inset 0 -1px 0 rgba(15, 59, 64, .06);
  opacity: 0; transition: transform .55s cubic-bezier(.34, 1.3, .64, 1), width .55s cubic-bezier(.34, 1.3, .64, 1), opacity .3s ease, background .45s ease;
}
.nav__pill.is-on { opacity: 1; }
html[data-type] .nav.is-on-paper .nav__links { background: rgba(15, 59, 64, .05); border-color: rgba(15, 59, 64, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
html[data-type] .nav.is-on-paper .nav__pill { background: var(--ink); box-shadow: 0 3px 10px rgba(8, 45, 60, .18); }
html[data-type] .nav.is-on-paper .nav__links a.is-on { color: var(--paper); }

/* ---------- the loader: the sun rises over a horizon, then the screen splits open along it ---------- */
html[data-type] .intro { display: block; }
html[data-type] .intro > p { display: none; }
.ld { position: absolute; inset: 0; display: grid; place-items: center; }
html[data-type="coast"] .intro { background: transparent; }
.ld--coast .half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--paper); }
.ld--coast .half--t { top: 0; } .ld--coast .half--b { bottom: 0; }
.ld--coast .ld__in { position: relative; display: grid; justify-items: center; gap: 18px; }
.ld--coast svg { width: 170px; height: 100px; overflow: visible; }
.ld--coast .sun { fill: #FFB547; }
.ld--coast .hz { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.ld--coast .ld__word { margin: 0; font-family: "Red Hat Display", sans-serif; font-weight: 800; font-style: italic; font-size: 46px; letter-spacing: -.04em; color: var(--ink); }

@media (max-width: 760px) {
  html[data-type] .brand svg { height: 32px; }
  html[data-type] .nav__links { display: none; }   /* a phone keeps the logo and the button only */
  html[data-type] .nav__cta { margin-left: auto; }
  html[data-type] .nav { --nav-drop: 4px; }
}
