:root {
  color-scheme: light;
  --ink: #333333;
  --muted: #66615c;
  --brand: #e47229;
  --paper: #faf8f5;
  --line: #ded8d0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2 { margin: 0; }
p { line-height: 1.65; }
strong { font-weight: 600; white-space: nowrap; }

.page {
  width: min(100% - 96px, 1080px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}

.logo { width: 178px; height: auto; }
.header-tools { display: grid; gap: 8px; justify-items: end; }
.language-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; font-size: 0.8125rem; line-height: 1.5; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 36px; padding-block: 4px; text-decoration: none; }
.language-switch a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.language-switch a:hover { text-decoration: underline; text-underline-offset: 5px; }
.team-label { color: var(--muted); font-size: 0.875rem; }
main { padding-block: 60px 48px; flex: 1; }
.welcome { max-width: 740px; }
.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.9vw, 3.25rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro { max-width: 53ch; margin-top: 22px; color: var(--muted); font-size: 1.0625rem; }
.mail-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(70 49 27 / 3%);
}

.mail-access { padding: 36px; }
.mail-icon { margin-bottom: 22px; }
h2 { font-size: 1.25rem; line-height: 1.35; font-weight: 650; letter-spacing: -0.015em; }
.mail-access > p:not(.destination) { margin-top: 12px; max-width: 37ch; color: var(--muted); }
.primary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  min-height: 52px;
  margin-top: 28px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: #231c17;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 120ms ease;
}

.primary-link svg { flex-shrink: 0; }
.primary-link:hover { background: #d9611f; }
.primary-link:active { transform: translateY(1px); }
.destination { margin-top: 13px; color: var(--muted); font-size: 0.75rem; }
.identity { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.identity-hint { margin-bottom: 12px; color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
#identity-email { white-space: normal; overflow-wrap: anywhere; }
#identity-status { margin-top: 12px; }
#google-signin-button { min-height: 40px; }
.text-button { padding: 8px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 0.8125rem; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:disabled { opacity: .6; cursor: wait; }
.identity-details { margin-top: 14px; border: 0; }
.identity-details summary { padding-block: 8px; color: var(--muted); font-size: 0.75rem; }
.identity-details p { margin-top: 4px; font-size: 0.75rem; }
.help { padding: 36px; border-left: 1px solid var(--line); border-radius: 0 16px 16px 0; background: #f5f1eb; }
.help h2 { margin-top: 14px; max-width: 25ch; }
.help > p:not(.eyebrow) { margin-top: 12px; margin-bottom: 24px; color: var(--muted); font-size: 0.9375rem; }
details { border-top: 1px solid var(--line); }
summary { padding-block: 15px; font-size: 0.875rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
summary::marker { color: var(--ink); }
summary:hover { text-decoration: underline; text-underline-offset: 3px; }
details p { margin: 0 0 18px; color: var(--muted); font-size: 0.875rem; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-signoff { text-align: center; }
.site-footer > :last-child { text-align: right; }

:focus-visible { outline: 3px solid #333333; outline-offset: 5px; }
main:focus { outline: none; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 12px 16px;
  border-radius: 4px;
  background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 767px) {
  .page { width: min(100% - 40px, 540px); }
  .site-header { padding-block: 24px; gap: 16px; flex-wrap: wrap; }
  .header-tools { margin-left: auto; }
  .logo { width: 144px; }
  .header-tools { display: grid; gap: 8px; justify-items: end; }
.language-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; font-size: 0.8125rem; line-height: 1.5; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 36px; padding-block: 4px; text-decoration: none; }
.language-switch a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.language-switch a:hover { text-decoration: underline; text-underline-offset: 5px; }
.team-label { font-size: 0.75rem; }
  main { padding-block: 36px; }
  h1 { font-size: clamp(1.875rem, 6.5vw, 2.75rem); }
  .desktop-break { display: none; }
  .intro { font-size: 1rem; }
  .mail-panel { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .mail-access, .help { padding: 26px 24px; }
  .primary-link { display: flex; width: 100%; padding-inline: 14px; gap: 12px; }
  .help { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .site-footer > :last-child { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .primary-link { transition: none; }
  .primary-link:active { transform: none; }
}

@media (forced-colors: active) {
  .primary-link { border-color: ButtonText; }
}
