@font-face {
  font-family: "Ysabeau Office";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("../fonts/ysabeau-office-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Ysabeau Office Regular";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ysabeau-office-regular-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Ysabeau Office Regular";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ysabeau-office-regular-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  color-scheme: light;
  --primary: #2a3440;
  --primary-dark: #1e2730;
  --paper: #fcfaf7;
  --ink: #202830;
  --muted: #5f6b78;
  --line: #d9d0cb;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background-color: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: "Ysabeau Office", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}

a:hover,
a:focus-visible {
  color: var(--primary);
  opacity: 0.78;
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  width: 100%;
  padding-inline: 1.5rem;
}

.site-header {
  display: flex;
  height: 56px;
  padding-block: 0;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 24px;
}

.hero {
  display: flex;
  min-height: 62vh;
  padding: 4rem 1.5rem 8rem;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.service-title {
  display: flex;
  width: min(100%, 88rem);
  align-items: center;
  flex-direction: column;
  color: var(--primary);
  font-family: "Ysabeau Office Regular", "Ysabeau Office", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.service-title-visible {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.service-name {
  /* Matches the rendered width of NEWSLETTER SERVICE in Ysabeau Office. */
  font-size: clamp(2.446rem, 9.568vw, 8.97rem);
  line-height: 0.85;
}

.service-lambda {
  margin-left: 0.04em;
}

.service-descriptor {
  margin-top: 0.26em;
  font-size: clamp(1.125rem, 4.4vw, 4.125rem);
  line-height: 1;
  white-space: nowrap;
}

.tagline {
  max-width: 52rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.5;
}

.tagline span {
  display: block;
}

.tagline-prompt {
  margin-top: 0.4em;
}

.page-content {
  width: min(100% - 3rem, 52rem);
  margin: 7rem auto;
}

.page-content h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.page-content p {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.site-footer {
  min-height: 52px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-wide,
.footer-compact {
  align-items: center;
  justify-content: space-between;
}

.footer-wide {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
}

.footer-wide nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

.footer-compact {
  display: none;
  gap: 1rem;
}

.footer-compact details {
  min-width: 0;
}

.footer-compact summary {
  width: max-content;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.footer-compact summary::-webkit-details-marker {
  display: none;
}

.footer-compact summary::after {
  display: inline-block;
  margin-left: 0.35em;
  content: "\25BE";
  transition: transform 150ms ease;
}

.footer-compact details[open] summary::after {
  transform: rotate(180deg);
}

.footer-compact summary:hover,
.footer-compact summary:focus-visible {
  color: var(--primary);
  opacity: 0.78;
}

.footer-compact summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-compact nav {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.9rem;
}

/* The complete wide footer needs about 45rem with its normal spacing and padding. */
@media (max-width: 46rem) {
  .footer-wide {
    display: none;
  }

  .footer-compact {
    display: flex;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    padding-inline: 1rem;
  }

  .site-header {
    height: 48px;
  }

  .hero {
    min-height: 58vh;
    padding: 3.25rem 1rem 5.75rem;
  }

}
