:root {
  font-family: gira-sans, Inter, Arial, sans-serif;
  color: #1a1a1a;
  background: #fbf7f1;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body { overflow: hidden; }

button { font: inherit; }

.home {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 36px;
}

.wordmark {
  display: block;
  width: min(70vw, 860px);
  height: auto;
}

.contact {
  position: absolute;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-style: normal;
  line-height: 1.4;
  text-align: center;
}

.contact a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.contact a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.info-toggle {
  position: fixed;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #1a1a1a;
  background: transparent;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.info-toggle:hover { opacity: .6; }
.info-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.info-icon { display: block; width: 36px; height: 36px; }

.close-glyph { display: none; width: 17px; height: 17px; position: relative; }
.close-glyph::before, .close-glyph::after {
  content: "";
  position: absolute;
  top: 7px;
  left: -1px;
  width: 19px;
  height: 2px;
  background: currentColor;
}
.close-glyph::before { transform: rotate(45deg); }
.close-glyph::after { transform: rotate(-45deg); }
body.ethos-open .info-icon { display: none; }
body.ethos-open .close-glyph { display: block; }

.ethos {
  position: fixed;
  z-index: 2;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fbf7f1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

body.ethos-open .ethos { opacity: 1; visibility: visible; }

.ethos-content {
  width: min(100%, 720px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(96px, 12svh, 160px) 24px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4em;
  text-align: left;
  font-size: clamp(17px, 1.75vw, 22px);
  font-weight: 400;
  line-height: 1.45;
}

.ethos-content p { margin: 0; }
.ethos-content .closing { font-style: italic; }

@media (max-width: 600px) {
  .home { padding: 20px; }
  .wordmark { width: 82vw; }
  .contact { bottom: calc(16px + env(safe-area-inset-bottom)); font-size: 15px; }
  .info-toggle { top: 13px; right: 13px; }
  .info-icon { width: 34px; height: 34px; }
  .ethos-content { padding: 94px 24px 64px; font-size: 18px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .info-toggle, .ethos { transition: none; }
}
