/* ANTITOURS */

/* Anybody (SIL OFL, fonts/OFL-Anybody.txt) */
@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url("fonts/anybody-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: "Anybody";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url("fonts/anybody-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;
}

/* Noto Sans: ʊ and ˈ only */
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-ipa.woff2") format("woff2");
  unicode-range: U+028A, U+02C8;
}

:root {
  /* Colour */
  --ground: #dce6ec;
  --ink: #10151a;
  --ink-muted: #4b555d;
  --on-ink: var(--ground);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;

  /* Rules and bars */
  --border-hairline: 1px;
  --border-rule: 2px;
  --border-bar: 6px;

  /* Sizes */
  --control-s: 44px;
  --control-l: 56px;
  --logo-d: 320px;
  --logo-ratio: 4.95;

  /* Type */
  --sans: "Anybody", system-ui, sans-serif;

  /* Mobile (390) scale */
  --fs-display-1: 48px;
  --fs-display-2: 32px;
  --fs-heading-1: 32px;
  --fs-heading-2: 20px;
  --fs-label: 12px;
  --fs-body: 14px;
  --fs-detail: 12px;
  --fs-button-l: 15px;

  --margin: var(--space-3);
  --block-gap: var(--space-4);
}

@media (min-width: 1024px) {
  :root {
    /* Desktop (1440) scale */
    --fs-display-1: 112px;
    --fs-display-2: 88px;
    --fs-heading-1: 56px;
    --fs-heading-2: 24px;
    --fs-label: 14px;
    --fs-body: 16px;
    --fs-detail: 14px;
    --fs-button-l: 18px;

    --margin: var(--space-5);
    --block-gap: var(--space-5);
  }
}

/* Base */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-stretch: 100%;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: var(--ink);
}

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: var(--border-rule) solid var(--ink);
  outline-offset: 2px;
}

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

/* Type styles */

.display-1,
.display-2,
.heading-1,
.heading-2,
.holding__topline,
.holding__title,
.signup__done {
  font-weight: 900;
  font-stretch: 140%;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

.display-1 {
  font-size: var(--fs-display-1);
}

.display-2 {
  font-size: var(--fs-display-2);
}

.heading-1 {
  font-size: var(--fs-heading-1);
}

.heading-2 {
  font-size: var(--fs-heading-2);
}

.label {
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: 0.06em;
  font-size: var(--fs-label);
  line-height: 1.4;
  text-transform: uppercase;
}

.body {
  font-weight: 400;
  font-stretch: 100%;
  font-size: var(--fs-body);
  line-height: 1.5;
}

.detail {
  font-weight: 400;
  font-stretch: 100%;
  font-size: var(--fs-detail);
  line-height: 1.5;
}

.muted {
  color: var(--ink-muted);
}

.text-link {
  text-underline-offset: 3px;
}

.muted .text-link {
  color: var(--ink-muted);
}

/* Desktop-only line breaks */
@media (max-width: 1023.98px) {
  .br-d {
    display: none;
  }
}

/* Page */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header,
.bar,
.site-footer {
  flex: none;
}

/* Bars */

.bar {
  height: var(--border-bar);
  background: var(--ink);
}

/* Header */

.site-header {
  padding: var(--space-3);
  container-type: inline-size;
}

.site-header__home {
  display: block;
  line-height: 0;
}

.site-header__logo {
  display: block;
  width: 100%;
  height: auto;
  height: round(calc(100cqw / var(--logo-ratio)), 1px);
}

@media (min-width: 1024px) {
  .site-header {
    padding: var(--space-3) var(--space-5);
    display: flex;
    align-items: center;
  }

  .site-header__logo {
    width: var(--logo-d);
    height: round(calc(var(--logo-d) / var(--logo-ratio)), 1px);
  }
}

/* About and Privacy */

.main {
  flex: 1 0 auto;
  padding: var(--space-5) var(--margin) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
}

@media (min-width: 1024px) {
  .main {
    padding-top: var(--space-7);
  }

  .main--about {
    padding-bottom: var(--space-7);
  }

  .main--privacy {
    padding-bottom: var(--space-5);
  }
}

/* Holding page */

.holding {
  flex: 1 0 auto;
}

.hero {
  background: var(--ground);
  border-bottom: var(--border-bar) solid var(--ink);
  container-type: inline-size;
}

.hero picture {
  display: contents;
}

/* Hero, 4:5 */
.hero__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  height: round(calc(100cqw * 5 / 4), 1px);
  object-fit: cover;
  object-position: center bottom;
}

.holding__main {
  padding: var(--space-3) var(--space-3) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Lock-up */
.holding__main {
  --cs: min(48px, calc((100vw - 32px) / 10.8));
}

.holding__topline > span,
.holding__title > span {
  display: block;
}

.holding__expeditions {
  font-size: calc(var(--cs) * 0.5798);
}

.holding__adventures {
  font-size: calc(var(--cs) * 0.5569);
}

.holding__season {
  font-size: calc(var(--cs) * 1.4422);
}

.holding__soon {
  font-size: var(--cs);
}

.holding__stack {
  display: flex;
  flex-direction: column;
}

.holding__intro {
  margin-top: var(--space-5);
  text-wrap: pretty;
}

.holding__signup {
  position: relative;
  margin-top: var(--space-2);
}

@media (min-width: 1024px) {
  /* Desktop: one screen */
  .page--holding {
    display: grid;
    grid-template-rows: auto auto minmax(440px, 1fr) auto;
  }

  .holding {
    min-height: 440px;
    display: flex;
  }

  /* Hero, 3:2 */
  .hero {
    flex: 0 0 66.667%;
    height: 100%;
    overflow: hidden;
    border-bottom: 0;
    container-type: normal;
    contain: size;
  }

  .hero__media {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 66.7%;
  }

  /* Bottom space collapses first */
  .holding__main {
    flex: 1 1 0;
    min-width: 0;
    padding: var(--space-3) var(--space-5) 0;
    gap: 0;
  }

  .holding__main::after {
    content: "";
    flex: 1 1 0;
    max-height: var(--space-5);
  }

  .holding__topline {
    margin-bottom: var(--space-4);
  }

  .holding__stack {
    margin-top: auto;
  }

  .holding__main {
    --cs: min(88px, calc((100vw / 3 - 80px) / 10.8), 9vh);
  }
}

/* Sign-up */

.signup {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.signup[hidden] {
  display: none;
}

.signup__field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.signup__input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: var(--control-l);
  background: transparent;
  border: 0;
  border-bottom: var(--border-rule) solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 16px;
  line-height: 20px;
  padding: 26px 0 8px;
  outline: none;
}

.signup__input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

/* Honeypot */
.signup__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Signed up: where SIGN UP was */
.signup__done {
  position: absolute;
  top: calc(var(--control-l) + var(--space-3));
  left: 0;
  right: 0;
  height: var(--control-l);
  display: flex;
  align-items: center;
  font-size: calc(var(--cs) * 0.7244);
  white-space: nowrap;
}

/* Confirmation takes focus but is not a control */
.signup__done:focus {
  outline: none;
}

/* Error tag */
.signup__error {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 var(--space-2);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 11px;
  line-height: 1;
}

@media (min-width: 1024px) {
  .signup__error {
    height: 20px;
    font-size: 13px;
  }
}

/* Button and privacy line */
.signup__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .signup__row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--space-4);
    row-gap: var(--space-3);
  }

  .signup__row .button-l {
    flex: 1 1 auto;
  }

  .signup__privacy {
    flex: none;
  }
}

.button-l {
  -webkit-appearance: none;
  appearance: none;
  height: var(--control-l);
  padding: 0 var(--space-5);
  background: var(--ink);
  color: var(--on-ink);
  border: 0;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: 140%;
  letter-spacing: -0.02em;
  font-size: var(--fs-button-l);
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.button-l:hover {
  background: var(--ink-muted);
}

@media (min-width: 1024px) {
  .button-l {
    padding: 0 var(--space-4);
  }
}

/* About */

.entries {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.entry__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.entry__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.entry__ipa {
  font-family: "Anybody", "Noto Sans", sans-serif;
}

.entry__logo {
  line-height: 0;
}

.entry__logo img {
  display: block;
  width: 141px;
  height: 28.5px;
}

.entry__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .entries {
    width: 100%;
    max-width: 1360px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: var(--space-5);
  }

  .entry {
    flex: 0 1 400px;
    min-width: 0;
    gap: var(--space-4);
  }

  .entry--anti {
    flex: 0 0 auto;
  }

  /* Headwords share a baseline */
  .entry__word,
  .entry__logo {
    height: 50px;
    display: flex;
    align-items: flex-end;
  }

  .entry__word {
    font-size: 48px;
  }

  .entry__logo img {
    width: 246px;
    height: 50px;
    margin-bottom: var(--space-2);
  }
}

/* Privacy */

.policy-text strong {
  font-weight: 700;
}

.policy-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.policy-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.policy-section {
  border-top: var(--border-hairline) solid var(--ink);
  padding: var(--space-4) 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.policy-updated {
  border-top: var(--border-hairline) solid var(--ink);
  padding-top: var(--space-3);
}

@media (min-width: 1024px) {
  .policy-intro,
  .policy-section,
  .policy-updated {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-4);
  }

  .policy-intro {
    align-items: baseline;
  }

  .policy-section {
    align-items: start;
  }

  .policy-updated {
    padding-top: var(--space-4);
  }

  .policy-intro h1,
  .policy-section h2 {
    grid-column: 1 / 5;
  }

  .policy-intro > .policy-text,
  .policy-section > .policy-text,
  .policy-updated > * {
    grid-column: 5 / 11;
  }
}

/* Footer */

.site-footer__inner {
  padding: var(--space-3) var(--margin);
}

/* Mobile: two columns */
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-4);
  align-items: stretch;
}

.site-footer__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
}

.site-footer__nav a,
.site-footer__cookies,
.site-footer__sign {
  display: block;
  padding: var(--space-2) 0;
}

.site-footer__nav a {
  text-decoration: none;
}

/* COOKIES: a button styled as the links */
.site-footer__cookies {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink-muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: pointer;
}

/* Mobile: COOKIES on the row above the copyright, level with STRAVA */
@media (max-width: 1023.98px) {
  .site-footer__nav--info {
    flex: 1 1 auto;
  }

  .site-footer__cookies {
    margin-top: auto;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding: 20px var(--margin);
  }

  /* Desktop: two rows */
  .site-footer__cols {
    grid-template-columns: repeat(4, auto) 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-5);
  }

  .site-footer__info,
  .site-footer__nav {
    display: contents;
  }

  .site-footer__nav a,
  .site-footer__cookies,
  .site-footer__sign {
    padding: var(--space-1) 0;
  }

  .site-footer__nav--info a:nth-child(1) { grid-area: 1 / 1; } /* ABOUT */
  .site-footer__nav--info a:nth-child(2) { grid-area: 2 / 1; } /* HELLO@ANTI.TOURS */
  .site-footer__nav--social a:nth-child(1) { grid-area: 1 / 2; } /* INSTAGRAM */
  .site-footer__nav--social a:nth-child(2) { grid-area: 2 / 2; } /* TIKTOK */
  .site-footer__nav--social a:nth-child(3) { grid-area: 1 / 3; } /* YOUTUBE */
  .site-footer__nav--social a:nth-child(4) { grid-area: 2 / 3; } /* STRAVA */
  .site-footer__nav--social a:nth-child(5) { grid-area: 1 / 4; } /* SPOTIFY */

  .site-footer__sign {
    grid-area: 1 / 5;
    text-align: right;
  }

  .site-footer__cookies {
    grid-area: 2 / 5;
    justify-self: end;
    width: auto;
    text-align: right;
  }
}

/* Cookie banner */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--on-ink);
}

/* Takes focus when reopened, but is not a control */
.consent:focus {
  outline: none;
}

.consent[hidden],
.consent [hidden] {
  display: none !important;
}

.consent a,
.consent button,
.consent input {
  color: var(--on-ink);
}

.consent a:focus-visible,
.consent button:focus-visible,
.consent input:focus-visible {
  outline: var(--border-rule) solid var(--on-ink);
  outline-offset: 2px;
}

.consent__title,
.consent__choice,
.consent__link,
.consent__save,
.consent__name,
.consent__on {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.consent__title {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.consent__text,
.consent__desc {
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.5;
}

.consent__text {
  margin: 0;
  font-size: 14px;
}

.consent__text a {
  text-underline-offset: 3px;
}

.consent__choice,
.consent__save {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: var(--control-s);
  padding: 0;
  border: var(--border-hairline) solid var(--on-ink);
  border-radius: 0;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.consent__choice {
  background: transparent;
}

.consent__choice:hover {
  background: var(--on-ink);
  color: var(--ink);
}

.consent__save {
  background: var(--on-ink);
  color: var(--ink);
}

.consent .consent__save {
  color: var(--ink);
}

.consent .consent__save:hover {
  background: var(--ink-muted);
  border-color: var(--ink-muted);
  color: var(--on-ink);
}

.consent__link {
  -webkit-appearance: none;
  appearance: none;
  height: var(--control-s);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: var(--border-rule);
  text-underline-offset: 5px;
  cursor: pointer;
}

/* Mobile: title and SETTINGS or BACK on one row, then text, then the buttons */
.consent__bar,
.consent__settings {
  padding: var(--space-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-2);
}

.consent__title {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.consent__actions {
  display: contents;
}

.consent__link {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: -12px 0;
}

.consent__text {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
}

.consent__deny,
.consent__accept {
  grid-row: 3;
  margin-top: var(--space-3);
}

.consent__deny {
  grid-column: 1;
}

.consent__accept {
  grid-column: 2;
}

.consent__rows {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  border-bottom: var(--border-rule) solid var(--on-ink);
}

.consent__row {
  box-sizing: border-box;
  min-height: var(--control-s);
  padding: var(--space-2) 0;
  border-top: var(--border-hairline) solid var(--on-ink);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

label.consent__row {
  cursor: pointer;
}

.consent__about {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.consent__name,
.consent__on {
  font-size: 12px;
  line-height: 1.4;
}

.consent__on {
  flex: none;
}

.consent__desc {
  font-size: 12px;
}

.consent__check {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: 0;
  border: var(--border-rule) solid var(--on-ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.consent__check:checked {
  background: var(--on-ink);
}

.consent__save {
  grid-column: 1 / -1;
  margin-top: var(--space-3);
}

@media (min-width: 1024px) {
  .consent__bar,
  .consent__settings {
    padding: 0 var(--space-5);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-4);
  }

  .consent__bar {
    box-sizing: border-box;
    height: 101px;
    align-items: center;
  }

  .consent__settings {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    align-items: start;
  }

  .consent__title {
    grid-column: 1 / span 2;
    font-size: 14px;
  }

  .consent__settings .consent__title {
    align-self: start;
    height: 57px;
    display: flex;
    align-items: center;
  }

  .consent__text {
    grid-column: 3 / span 6;
    grid-row: 1;
    margin-top: 0;
  }

  .consent__actions {
    grid-column: 9 / span 4;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
  }

  .consent__settings .consent__actions {
    align-self: end;
  }

  .consent__choice,
  .consent__save {
    flex: none;
    width: 128px;
    margin-top: 0;
    font-size: 14px;
  }

  .consent__link {
    flex: none;
    margin: 0 0 0 var(--space-3);
    font-size: 14px;
  }

  .consent__rows {
    grid-column: 3 / span 6;
    grid-row: 1;
    margin-top: 0;
  }

  .consent__row {
    min-height: 57px;
    padding: 0;
    gap: var(--space-4);
  }

  .consent__about {
    display: contents;
  }

  .consent__name {
    flex: 0 0 160px;
  }

  .consent__desc {
    flex: 1 1 auto;
    font-size: 14px;
  }

  .consent__name,
  .consent__on {
    font-size: 14px;
  }
}

/* Narrow desktop: one more column for the buttons so they clear the text */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .consent__text {
    grid-column: 3 / span 5;
  }

  .consent__bar .consent__actions {
    grid-column: 8 / span 5;
  }
}
