/*
 * bardiscare.com: big plain type on a strict 12-column grid, navy and blue only.
 * See website/README.md. Small text never uses --blue (4.4:1 on white); it uses
 * --blue-text, which passes WCAG AA.
 */
:root {
  --navy: #1a3254;
  --blue: #467a96;
  --blue-text: #36627c;
  --sky: #cfe3ee;
  --ink: #0d1726;
  --muted: #4a5566;
  --rule: #c6ccd4;
  --bg: #ffffff;
  --pad: 40px;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}

.wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
}

/* Header */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 2px solid var(--ink);
}
.site-header nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.signin {
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

/* Type */
.kicker {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-text);
}
.display {
  font-weight: 900;
  font-size: clamp(56px, 9.5vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--navy);
}
.display span,
.h2 span {
  color: var(--blue);
}
.h2 {
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--navy);
}
.h3 {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--navy);
}
.lede {
  font-size: 21px;
  line-height: 1.5;
  margin: 0;
}
.muted {
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 18px 26px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.btn:hover {
  background: #12243d;
}
.btn.light {
  background: #fff;
  color: var(--navy);
}
.btn.light:hover {
  background: #f1f5f8;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  row-gap: 34px;
}
.hero .kicker {
  grid-column: 1 / 4;
  padding-top: 16px;
}
.hero .display {
  grid-column: 4 / 13;
}
.hero .lede {
  grid-column: 4 / 9;
}
.hero .go {
  grid-column: 10 / 13;
  align-self: end;
  justify-self: end;
}

/* Numbers strip */
.nums {
  border-top: 2px solid var(--ink);
}
.num {
  grid-column: span 3;
  padding: 26px 24px 40px 0;
  border-right: 1px solid var(--rule);
}
.num + .num {
  padding-left: 0;
}
.num:last-child {
  border-right: 0;
}
.num .v {
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--navy);
}
.num .v span {
  color: var(--blue);
}
.num p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.45;
  max-width: 270px;
}

/* Generic section */
.section {
  padding: 72px 0;
  border-top: 2px solid var(--ink);
  row-gap: 32px;
}
.section > .side {
  grid-column: 1 / 5;
}
.section > .main {
  grid-column: 6 / 13;
}
.section .side .lede {
  margin-top: 22px;
}

/* Lists with a top rule per item */
.ruled {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.ruled li {
  border-top: 2px solid var(--navy);
  padding: 12px 0 22px;
  line-height: 1.45;
}
.ruled li b {
  display: block;
  font-size: 19px;
  color: var(--navy);
}
.ruled.one {
  grid-template-columns: 1fr;
}

/* Sky band */
.band {
  background: var(--sky);
}
.band .section {
  border-top: 0;
}
.band .ruled li {
  border-top-color: var(--navy);
}

/* Module blocks on What it does */
.module {
  padding: 56px 0;
  border-top: 2px solid var(--ink);
  row-gap: 24px;
}
.module .n {
  grid-column: 1 / 3;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--blue);
}
.module .head {
  grid-column: 3 / 7;
}
.module .head .lede {
  margin-top: 14px;
  font-size: 19px;
}
.module .body {
  grid-column: 8 / 13;
}
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--blue-text);
  color: var(--blue-text);
  padding: 2px 8px;
  margin-top: 14px;
}

/* A product screen drawn in HTML (fictional data) */
.screen {
  border: 2px solid var(--navy);
  background: #fff;
  font-size: 15px;
}
.screen .bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.screen .title {
  padding: 16px 16px 8px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
}
.screen .row {
  display: grid;
  grid-template-columns: 9.5em 1fr 5.5em;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #e8ebef;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  border: 1px solid #c9d3de;
  padding: 3px 8px;
  font-size: 13.5px;
}
.pill.ok {
  background: #e7f2ec;
  border-color: #9cc9ad;
}
.pill.due {
  background: #fdf3e4;
  border-color: #e3b375;
}
.give {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 7px 0;
  font-weight: 700;
  font-size: 14px;
}
.state {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
}
.state.done {
  color: #1e7a43;
}
.state.held {
  color: #8a5200;
}
.caption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

/* Note from the founder / pilot */
.note {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
}

/* Closing banner on every page */
.closing {
  background: var(--navy);
  color: #fff;
}
.closing .grid {
  padding: 72px var(--pad);
  row-gap: 28px;
  align-items: end;
}
.closing .display {
  grid-column: 1 / 9;
  color: #fff;
  font-size: clamp(48px, 7vw, 96px);
}
.closing .display span {
  color: #8fbfd8;
}
.closing .go {
  grid-column: 10 / 13;
  justify-self: end;
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  font-size: 15px;
  row-gap: 24px;
}
.site-footer .brand {
  grid-column: 1 / 5;
}
.site-footer .brand p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 300px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2;
}
.site-footer .links {
  grid-column: 6 / 9;
}
.site-footer .reach {
  grid-column: 9 / 13;
}
.site-footer .fine {
  grid-column: 1 / 13;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact-card {
  border-top: 2px solid var(--navy);
  padding-top: 18px;
}
.contact-card .big {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy);
  word-break: break-word;
}

/* Tablet */
@media (max-width: 980px) {
  .hero .kicker,
  .hero .display,
  .hero .lede,
  .hero .go,
  .section > .side,
  .section > .main,
  .module .head,
  .module .body,
  .closing .display,
  .closing .go,
  .site-footer .brand,
  .site-footer .links,
  .site-footer .reach {
    grid-column: 1 / 13;
    justify-self: start;
  }
  .module .n {
    grid-column: 1 / 13;
  }
  .num {
    grid-column: span 6;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-header nav {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .site-header nav ul {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 22px;
  }
}

/* Phone */
@media (max-width: 600px) {
  :root {
    --pad: 16px;
  }
  body {
    font-size: 16px;
  }
  .lede {
    font-size: 18px;
  }
  .num {
    grid-column: 1 / 13;
  }
  .ruled {
    grid-template-columns: 1fr;
  }
  .screen .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .give,
  .state {
    text-align: left;
    width: 6em;
  }
  .give {
    text-align: center;
  }
  .section,
  .module {
    padding: 48px 0;
  }
  .closing .grid {
    padding: 52px var(--pad);
  }
}
