/* Partridge Software. Static, no build step. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --strip-yellow: #ffe45c;
  --strip-blue: #9fd0ff;
  --strip-green: #a6e3a1;
  --graphite: #595959;
  --rule: #e3e3e3;
  --footer-grey: #bdbdbd;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1200px;
  --gutter: 16px;
  --section: 64px;
  color-scheme: light;
}
/* Breakpoints are in em (600px, 720px, 1024px at the default size) so they track the user's font size. */
@media (min-width: 37.5em) { :root { --gutter: 32px; --section: 88px; } }
@media (min-width: 64em)   { :root { --gutter: 48px; --section: 112px; } }

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.125rem;
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.55;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.9;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-stretch: 70%;
  font-weight: 800;
  line-height: 0.95;
}

h3 {
  font-size: 1.3125rem;
  font-stretch: 100%;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 16px 0 0;
  max-width: 64ch;
}

h2 + p {
  margin-top: 24px;
}

.lead {
  font-size: clamp(1.1875rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.band :focus-visible {
  outline-color: var(--strip-yellow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.keep {
  white-space: nowrap;
}

/* Links and buttons */

.button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--strip-yellow);
  color: var(--black);
}

.button--large {
  height: 48px;
  padding-inline: 24px;
  font-size: 1.0625rem;
}

.text-link {
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration-thickness: 3px;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: var(--gutter);
  z-index: 1;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 1.125rem;
  font-stretch: 100%;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.brand__mark {
  flex: none;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 44.99em) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 22.49em) {
  .site-header {
    gap: 8px;
  }

  .site-header .button {
    padding-inline: 8px;
  }
}

/* Only reached with a very large default font size. */
@media (max-width: 19.99em) {
  .keep {
    white-space: normal;
  }
}

/* Hero */

.hero {
  padding-block: 40px 56px;
}

.hero .lead {
  margin-top: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}

/* Stripboard */

.board {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 2px solid var(--black);
  font-size: 0.875rem;
  font-stretch: 75%;
  font-weight: 500;
  line-height: 1.1;
}

.strip + .strip {
  border-top: 1px solid var(--black);
}

.strip--int-day   { background: var(--white); }
.strip--ext-day   { background: var(--strip-yellow); }
.strip--int-night { background: var(--strip-blue); }
.strip--ext-night { background: var(--strip-green); }

.strip__row {
  display: grid;
  grid-template-columns: 2rem 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 40px;
  padding-block: 8px;
}

.strip__sc,
.strip__pgs,
.strip__cast,
.strip__total {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.strip__pgs {
  text-align: right;
  white-space: nowrap;
}

.strip__set,
.strip__dn,
.strip__cast {
  display: none;
}

.strip--break {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
}

.strip--break .strip__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  height: 32px;
  min-height: 0;
  padding-block: 0;
}

@media (min-width: 37.5em) {
  .strip__row {
    grid-template-columns: 3rem 3rem minmax(0, 1fr) 2rem minmax(0, 2fr) 4.5rem;
    min-height: 44px;
  }

  .strip__set,
  .strip__dn {
    display: block;
  }
}

@media (min-width: 64em) {
  .strip__row {
    grid-template-columns: 3rem 3rem minmax(9rem, 1.1fr) 2rem minmax(14rem, 2fr) 4.5rem 5rem;
    column-gap: 16px;
  }

  .strip__cast {
    display: block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .strip {
    animation: lay-strip 450ms cubic-bezier(.2, .7, .2, 1) calc(150ms + var(--i, 0) * 60ms) both;
  }

  @keyframes lay-strip {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
}

/* Sections */

.section {
  padding-block: var(--section);
}

.section + .section {
  padding-top: 0;
}

/* Our work */

.facts {
  display: grid;
  gap: 8px;
  margin: 32px 0 0;
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
}

.facts dt {
  flex: 0 0 6.5rem;
  color: var(--graphite);
}

.facts dd {
  flex: 1 1 12ch;
  min-width: 0;
  margin: 0;
}

/* What we build */

.build-grid {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.build-grid p {
  margin-top: 8px;
}

@media (min-width: 37.5em) {
  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }

  /* Subgrid lines up each row's descriptions when one heading wraps. */
  .build-grid > div {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 8px;
  }

  .build-grid > div > p {
    margin-top: 0;
  }
}

/* About */

#about .text-link {
  display: inline-block;
  margin-top: 8px;
}

/* Contact band and footer */

.band {
  background: var(--black);
  color: var(--white);
}

.contact {
  padding-block: var(--section) 64px;
}

.email {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration-line: underline;
  text-decoration-color: var(--strip-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.email:hover {
  color: var(--strip-yellow);
}

.contact .email {
  display: inline-block;
  max-width: 100%;
}

.contact p:last-child {
  margin-top: 40px;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 32px 48px;
  color: var(--footer-grey);
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer p {
  margin-top: 8px;
}

.site-footer p:first-child {
  margin-top: 0;
}
