/* ABC Marist Book */
@font-face {
  font-family: "Marist";
  src: url("fonts/ABCMarist-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marist";
  src: url("fonts/ABCMarist-BookItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

html {
  color-scheme: dark;
  background: #000;
  color: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding-inline: 24px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Marist", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 21px;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  overscroll-behavior: none;
}

header,
main {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

header {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
}

.clock {
  font-variant-numeric: tabular-nums;
}

/* Vertically centre the content in the space below the header */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px;
}

.about {
  margin: 0 0 52px;
}

dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 22px;
  margin: 0;
  line-height: 24px;
}

dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

/* Newsletter field reads as plain text, like the design */
.newsletter input {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.newsletter input::placeholder {
  color: inherit;
  opacity: 1;
}

.newsletter input:focus::placeholder {
  opacity: 0.4;
}

.newsletter input:focus {
  outline: none;
}

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

::selection {
  background: #fff;
  color: #000;
}
