/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Allow percentage-based heights in the application */
html,
body {
  height: 100%;
}

/* 4. Improve text rendering and spacing */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Create a root stacking context (optional but helpful) */
main {
  isolation: isolate;
}

/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/static/fonts/open-sans-v44-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  src: url("/static/fonts/open-sans-v44-latin-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: url("/static/fonts/open-sans-v44-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  font:
    1rem / 1.5 "Open Sans", /* Primary choice */
    system-ui, /* Modern standard (Mac, Windows, Android) */
    -apple-system, /* Legacy Safari/iOS */
    "Segoe UI", /* Windows 10/11 specific */
    Roboto, /* Android specific */
    Helvetica, /* High-quality legacy fallback */
    Arial, /* High-quality legacy fallback */
    sans-serif; /* The final safety net */
  padding: 1rem;
  background: #cad2c5;
  color: #2f3e46;
}

section {
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  padding: calc(0.5rem - 1px) 0.8rem;
  border: 1px solid #2f3e46;
  border-radius: 3px;
  box-shadow: inset 0 0 1px #fff;
}

button:active {
  transform: translateY(1px);
}

button.primary {
  background: #52796f;
  color: #fefae0;
}

button.secondary {
  background: #fefae0;
  color: inherit;
  border-color: #999;
}

button.active {
  background: #bc6c25;
  color: #fefae0;
}

button img {
  margin-right: 0.3rem;
}

.clickable-icon {
  display: inline-block;
  cursor: pointer;
  color: #457b9d;
  margin-left: 0.25rem;
}

p .clickable-icon {
  margin-left: 0;
  vertical-align: middle;
}

.fr {
  display: flex;
  flex-direction: row;
}

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

.aic {
  align-items: center;
}

.aifs {
  align-items: flex-start;
}

.jcsb {
  justify-content: space-between;
}

.mr1 {
  margin-right: 1rem;
}

.mb1 {
  margin-bottom: 1rem;
}

blockquote {
  border-left: 3px solid #999;
  padding-left: 1rem;
  font-size: 0.85rem;
}

.desc {
  font-size: 0.9rem;
  font-style: italic;
  color: #52796f;
}

.error {
  font-size: 0.9rem;
  font-style: italic;
  color: #8b2626;
}

main {
  width: 100%;
  max-width: 576px;
}

.logo {
  width: 100%;
  max-width: 576px;
  height: auto;
  margin-bottom: 1rem;
  aspect-ratio: 1440 / 350;
}

.modal {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #dad7cd;
  width: 90%;
  max-width: 400px;
  padding: 1rem 1.5rem;
}
