@font-face {
  font-family: "Bariol";
  src: url("assets/fonts/Bariol_Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bariol";
  src: url("assets/fonts/Bariol_Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #ffe5d8;
  --ink: #15110f;
  --muted: #5c4d45;
  --bar: #221b18;
  --line: rgba(21, 17, 15, 0.18);
  --max: 1060px;
  --text: 880px;
  --topbar: 58px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bariol", "Trebuchet MS", Arial, sans-serif;
}

body.home {
  background: #ffe5d8;
}

body.page-doc {
  background: #ffe5d8;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: var(--bar);
  color: rgba(255, 240, 231, 0.84);
}

.topbar-home {
  background: #ffffff;
  color: var(--ink);
  transition: box-shadow 140ms ease;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--topbar);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-home-inner {
  justify-content: center;
  min-height: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
  transition:
    min-height 140ms ease-out,
    padding-top 140ms ease-out,
    padding-bottom 140ms ease-out;
}

.home-link img {
  width: min(108px, 26vw);
  transition:
    width 320ms ease-out,
    transform 320ms ease-out;
  transition-delay: 0ms;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-home:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.topbar-home:hover .topbar-home-inner,
.topbar-home:focus-within .topbar-home-inner {
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.topbar-home:hover .home-link img,
.topbar-home:focus-within .home-link img,
.home-link:hover img,
.home-link:focus-visible img {
  width: min(180px, 42vw);
  transition-delay: 140ms;
}

.brand {
  color: #fff2e8;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-transform: lowercase;
}

.topnav {
  color: rgba(255, 240, 231, 0.74);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 24px;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: lowercase;
}

.topnav a {
  opacity: 0.78;
  white-space: nowrap;
}

.topnav a:hover,
.topnav a:focus-visible,
.hero-links a:hover,
.hero-links a:focus-visible,
.inline-links a:hover,
.inline-links a:focus-visible {
  opacity: 1;
}

.hero-links a {
  transition: transform 140ms ease, font-size 140ms ease, opacity 140ms ease;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  transform: scale(1.08);
  transform-origin: right center;
}

.landing,
.page-main {
  padding-top: calc(var(--topbar) + 38px);
}

.home .landing {
  padding-top: 68px;
}

.hero,
.store-links,
.media,
.page-shell,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero {
  position: relative;
  min-height: 250px;
  padding-top: 18px;
  padding-bottom: 22px;
}

.hero-copy {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 220px;
  margin-right: 152px;
  transform: translateY(-68%);
  display: grid;
  justify-items: end;
}

.hero-links {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.hero-links a {
  width: fit-content;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 0.96;
  text-transform: lowercase;
  white-space: nowrap;
}

.hero-note,
.page-intro,
.content,
.site-footer,
.inline-links {
  font-size: 1.35rem;
  line-height: 1.5;
}

.hero-note {
  max-width: 18ch;
  color: var(--muted);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.store-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding-top: 8px;
  padding-bottom: 54px;
}

.store-links img {
  width: clamp(90px, 11vw, 128px);
}

.media {
  padding-top: 8px;
  padding-bottom: 96px;
}

.media-block + .media-block {
  margin-top: 42px;
}

.media-label,
.page-kicker {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.2;
  text-transform: lowercase;
}

.embed {
  position: relative;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.embed iframe {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 3px);
  display: block;
  border: 0;
  background: #000;
  transform: translateZ(0);
}

.youtube-embed {
  position: relative;
  overflow: hidden;
}

.youtube-fallback {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #ffffff;
}

.youtube-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.youtube-fallback span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 1rem;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
}

.local-file-preview .youtube-embed iframe {
  display: none;
}

.local-file-preview .youtube-fallback {
  display: block;
}

.page-shell {
  max-width: var(--text);
  padding-top: 28px;
  padding-bottom: 90px;
}

.page-header {
  margin-bottom: 34px;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 0.9;
  font-weight: 700;
  text-transform: lowercase;
}

.page-intro {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
}

.content h2,
.content h3,
.content h4,
.fact-title {
  margin: 38px 0 12px;
  font-weight: 700;
  line-height: 1;
}

.content h2,
.fact-title {
  font-size: 2.2rem;
}

.content h3 {
  font-size: 1.8rem;
}

.content h4 {
  font-size: 1.45rem;
}

.content p,
.content ul,
.content ol,
.content table,
.content dl,
.inline-links {
  margin: 0 0 18px;
}

.content ul,
.content ol {
  padding-left: 1.4em;
}

.content li {
  margin-bottom: 10px;
}

.content strong {
  font-weight: 700;
}

.content hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
}

.content th,
.content td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.content th {
  font-weight: 700;
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.inline-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  padding-bottom: 36px;
}

.site-footer p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .hero {
    display: flex;
    min-height: auto;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
  }

  .hero-copy {
    position: static;
    width: min(34vw, 180px);
    margin-right: 0;
    transform: none;
    padding-top: 12px;
    justify-items: end;
    flex: 0 1 auto;
  }

  .hero-art {
    justify-content: center;
    flex: 0 1 min(52vw, 280px);
  }

  .hero-art img {
    width: min(52vw, 280px);
  }

  .hero-links a {
    font-size: clamp(1.35rem, 5.8vw, 2.05rem);
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-home .topbar-inner,
  .topbar-home-inner {
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }

  .landing,
  .page-main {
    padding-top: 112px;
  }

  .home .landing {
    padding-top: 76px;
  }

  .hero,
  .store-links,
  .media,
  .page-shell,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topnav {
    gap: 14px 18px;
    font-size: 1rem;
  }

  .hero-note,
  .page-intro,
  .content,
  .inline-links {
    font-size: 1.2rem;
  }

  .hero-links a {
    font-size: clamp(1.05rem, 6.5vw, 1.7rem);
  }

  .hero {
    gap: 22px;
    padding-top: 10px;
    padding-bottom: 18px;
  }

  .hero-copy {
    width: min(29vw, 108px);
    padding-top: 12px;
    transform: translateX(-10px);
  }

  .hero-art {
    flex-basis: min(48vw, 198px);
    transform: translateX(10px);
  }

  .hero-art img {
    width: min(48vw, 198px);
  }

  .store-links {
    gap: 24px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero {
    gap: 18px;
  }

  .hero-copy {
    width: min(27vw, 94px);
    padding-top: 12px;
    transform: translateX(-12px);
  }

  .hero-links {
    gap: 2px;
  }

  .hero-links a {
    font-size: clamp(0.96rem, 6vw, 1.38rem);
  }

  .hero-art {
    flex-basis: min(46vw, 176px);
    transform: translateX(12px);
  }

  .hero-art img {
    width: min(46vw, 176px);
  }

  .store-links img {
    width: clamp(78px, 24vw, 98px);
  }
}
