/* The public site in TD-15's dashboard palette (docs/design/design-system.md):
   light teal and white, black ink, coral for the one action, and the app's
   deep teal on the phone. Familjen Grotesk with Noto Sans Ethiopic. */
:root {
  --brand: #0e5e66;
  --brand-deep: #09434a;
  --brand-soft: #d2edef;
  --paper: #f1f9fa;
  --on-brand: #ffffff;
  --on-brand-2: #ddf1f3;
  --action: #ff7a59;
  --on-action: #000000;
  --ink: #000000;
  --ink-2: #3d4a4c;
  --hairline: #d9e6e8;
  --app-page: #0a3d42;
  --app-row: #0e4a50;
  --app-poster: #17707a;
  --app-deepest: #06292d;
  --app-text-2: #b8e3e6;
  --app-poster-text: #ddf3f5;
  --app-mark: #6cc3ca;
  --radius-card: 1.375rem;
  --radius-field: 0.875rem;
  --font: "Familjen Grotesk", "Noto Sans Ethiopic", ui-sans-serif, system-ui, sans-serif;
  --font-ethiopic: "Noto Sans Ethiopic", "Familjen Grotesk", ui-sans-serif, sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[lang="am"] {
  font-family: var(--font-ethiopic);
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  background: #ffffff;
  padding: 8px 12px;
  z-index: 10;
}

/* Header and footer */
.site-header {
  border-bottom: 1.5px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

/* The logo in one colour, teal on white: the mark, Tsedal, and ጸዳል beneath
   it (docs/design/design-system.md, The Tsedal mark). */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 16px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--brand);
}

.site-footer {
  margin-top: 96px;
  border-top: 1.5px solid var(--hairline);
  padding: 28px 0 40px;
  font-size: 15px;
  color: var(--ink-2);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.site-footer a {
  color: var(--ink);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
  background: #ffffff;
}

.button:hover {
  background: var(--paper);
}

.button-action {
  background: var(--action);
  border-color: var(--action);
  color: var(--on-action);
}

.button-action:hover {
  background: var(--action);
  filter: brightness(0.96);
}

/* The front page */
.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.lede {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.status {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* The phone: the app's Today screen in deep teal (TD-15). */
.phone {
  justify-self: center;
  width: min(100%, 330px);
  border: 6px solid var(--ink);
  border-radius: 44px;
  background: var(--app-page);
  color: #ffffff;
  padding: 22px 12px 18px;
  overflow: hidden;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 10px;
  font-weight: 700;
  font-size: 16px;
}

.phone-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e6f6f7;
  color: var(--app-poster);
}

.poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 168px;
  border-radius: 26px;
  background: var(--app-poster);
  padding: 16px 18px;
}

.poster-month {
  margin: 0;
  font-family: var(--font-ethiopic);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.2;
}

.poster-day {
  margin: 0;
  font-size: 16px;
  color: var(--app-poster-text);
}

/* Low and behind, as in the app, so it never runs into the date. */
.poster-numeral {
  position: absolute;
  right: -8px;
  bottom: -34px;
  z-index: -1;
  font-family: var(--font-ethiopic);
  font-weight: 900;
  font-size: 124px;
  line-height: 1;
  color: #d6f1f3;
  opacity: 0.95;
}

.poster-saint {
  position: absolute;
  left: 8px;
  bottom: -4px;
  z-index: -2;
  width: 112px;
  height: 106px;
  color: #ffffff;
  opacity: 0.18;
}

.poster-saint svg {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-label {
  margin: 14px 6px 8px;
  font-weight: 700;
  font-size: 20px;
}

.this-week {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.this-week li {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: var(--app-row);
  padding: 9px 12px;
  min-height: 58px;
}

.row-date {
  width: 40px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  color: var(--app-text-2);
}

.row-numeral {
  display: block;
  font-family: var(--font-ethiopic);
  font-size: 21px;
  line-height: 1;
  color: var(--app-mark);
}

.row-text {
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.row-text strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-text span {
  display: block;
  color: var(--app-text-2);
}

.give-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  border-radius: 18px;
  background: var(--app-deepest);
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
}

.give-row span:last-child {
  margin-left: auto;
  border-radius: 999px;
  background: var(--action);
  color: var(--app-deepest);
  padding: 7px 18px;
}

/* Sections */
.section {
  margin-top: 104px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-intro {
  margin: 14px 0 0;
  max-width: 40em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.pillars {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.pillar {
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
}

.pillar svg {
  color: var(--brand);
}

.pillar h3,
.point h3 {
  margin: 14px 0 6px;
  font-size: 21px;
  line-height: 1.25;
}

.pillar p,
.point p {
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
}

.band {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 40px 28px;
}

.points {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.point h3 {
  margin-top: 0;
}

.steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1.5px solid var(--hairline);
  padding: 12px 0;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 15px;
  transform: translateY(6px);
}

.steps strong {
  display: block;
}

.steps span {
  color: var(--ink-2);
  font-size: 17px;
}

.contact {
  display: grid;
  gap: 20px;
  align-items: center;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius-card);
  padding: 40px 28px;
}

.contact p {
  margin: 10px 0 0;
  color: var(--on-brand-2);
  max-width: 36em;
}

.contact a:not(.button) {
  color: var(--on-brand);
}

.contact .button {
  justify-self: start;
}

/* Terms and privacy */
.legal {
  max-width: 720px;
  padding-top: 48px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.legal .meta {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}

.legal h2 {
  margin-top: 44px;
  font-size: 26px;
}

.legal p,
.legal li {
  text-wrap: pretty;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    padding-top: 72px;
  }

  .pillars,
  .points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .band,
  .contact {
    padding: 48px;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact .button {
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
  }
}
