/* Pastifact: what every page shares. The world = the channel banner: a red plaster wall, white marble, a deep blue sky. */
:root {
  --red: #b5492f;            /* the wall */
  --red-deep: #93362a;       /* the darker band at its foot */
  --red-ink: #6f241c;
  --marble: #f3eee7;
  --marble-shade: #ddd5ca;
  --vein: #8f8882;
  --ink: #211b18;
  --ink-soft: #5a4f49;
  --sky: #2a549b;
  --sky-low: #5d8fc6;
  --cream: #fff5e8;
  --stone: #b9a391;
  --display: Optima, "Optima Nova", Candara, "Gill Sans", "Segoe UI", "Noto Sans", sans-serif;
  --text: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--marble); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
@view-transition { navigation: auto; }

.caps { font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
/* marble as a page ground: the veins washed back so text stays easy to read (frames and buttons use it at full strength) */
.marble { background: linear-gradient(rgba(243, 238, 231, .7), rgba(243, 238, 231, .7)), var(--marble) url(../img/brand/marble.webp) center / 1100px; }

/* the top bar: sits over whatever is behind it */
.top { position: absolute; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px); color: var(--cream); }
.top.on-marble { color: var(--ink); }
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: .26em; font-size: 1.02rem; text-decoration: none; }
.top nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.top nav a { font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.top nav a:hover { border-color: currentColor; }

/* buttons: a marble slab, and a quiet text link */
.btn { display: inline-flex; align-items: center; gap: .7em; padding: .85em 1.5em .8em; font-family: var(--display); font-weight: 700;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 0; cursor: pointer;
  background: var(--marble) url(../img/brand/marble.webp) 30% 40% / 700px; border-radius: 2px;
  box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgba(60, 40, 30, .16) inset, 0 10px 24px -10px rgba(30, 10, 5, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgba(60, 40, 30, .16) inset, 0 16px 28px -12px rgba(30, 10, 5, .8); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.red { color: var(--cream); background: var(--red); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 10px 22px -12px rgba(80, 20, 10, .9); }
.link { font-family: var(--display); font-weight: 700; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: .85; }
.link:hover { opacity: 1; }

/* the foot of every page: the wall's dark band on a stone kerb */
.foot { background: var(--red-deep); color: var(--cream); border-top: 10px solid var(--stone); position: relative; }
.foot::before { content: ""; position: absolute; inset: 0; background: url(../img/brand/plaster.webp) center / 700px; mix-blend-mode: overlay; opacity: .55; pointer-events: none; }
.foot-in { position: relative; max-width: 1100px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 44px) 52px; display: flex; flex-wrap: wrap;
  gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 2px var(--cream); }
.foot-brand strong { display: block; font-family: var(--display); letter-spacing: .26em; font-size: 1rem; }
.foot-brand span { font-style: italic; opacity: .85; font-size: .95rem; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
