/*
  Palette (written as literal values so browsers without CSS custom
  properties, such as IE11, still get the colors):
    #272727 page       #313131 card       #3d3d3d line
    #f2f2f2 text       #d3d3d3 heading    #a6a6a6 muted
    #fa4345 red        #08f8f9 cyan       #1a1a1a text on red/cyan
*/

* { box-sizing: border-box; }
html, body { margin: 0; }
main, header, footer, nav, section { display: block; }
[hidden] { display: none !important; }

body {
  padding: 64px 20px 40px;
  background: #272727;
  color: #f2f2f2;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
}

main {
  max-width: 560px;
  margin: 0 auto;
}

/* Header */

.intro { text-align: center; }

.mark {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto 24px;
  /* logo.jpg sits on #262626; lighten folds it into the #272727 page */
  mix-blend-mode: lighten;
}

h1 {
  margin: 0 0 12px;
  color: #d3d3d3;
  font-size: 2.5rem;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  margin: 0 0 56px;
  color: #a6a6a6;
  font-size: 1.05rem;
}

/* Invitation and contact */

.invite {
  margin: 0 0 40px;
  padding: 32px 28px;
  background: #313131;
  border: 1px solid #3d3d3d;
  border-radius: 16px;
  box-shadow: -4px 0 0 #fa4345, 4px 0 0 #08f8f9;
  font-size: 1.2rem;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
}

/* 700 at 1.2rem is WCAG "large text"; the red needs that to clear 3:1 on the card */
.invite strong { color: #08f8f9; font-weight: 700; }
.invite strong.red { color: #fa4345; }

/* inline-block + margins instead of flex gap, which older Safari lacks */
.links {
  margin: 0 -8px;
  text-align: center;
}

.links a {
  display: inline-block;
  max-width: 100%;
  margin: 8px;
  padding: 12px 22px;
  border: 2px solid #fa4345;
  border-radius: 999px;
  background: #fa4345;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-transition: -webkit-filter .15s;
  transition: filter .15s;
}

.links a.cyan {
  border-color: #08f8f9;
  background: #08f8f9;
}

/* stays filled on hover: red text on the page background would drop below 4.5:1 */
.links a:hover {
  -webkit-filter: brightness(1.12);
  filter: brightness(1.12);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.links svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -4px;
}

.copy-line {
  margin: 20px 0 0;
  color: #a6a6a6;
  text-align: center;
}

.copy-button {
  min-height: 44px;
  margin-left: 4px;
  padding: 8px 16px;
  border: 2px solid #a6a6a6;
  border-radius: 999px;
  background: transparent;
  color: #f2f2f2;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.copy-button:hover { border-color: #f2f2f2; }

.status {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: #08f8f9;
  text-align: center;
}

/* Keyboard focus: plain :focus for old browsers, dropped for mouse
   clicks where :focus-visible is understood */
a:focus,
button:focus {
  outline: 3px solid #f2f2f2;
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* Sections */

.info {
  margin: 72px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid #fa4345;
}

.info.cyan { border-left-color: #08f8f9; }

h2 {
  margin: 0 0 16px;
  color: #d3d3d3;
  font-size: 1.35rem;
  line-height: 1.25;
}

.info p,
.info ol,
.info ul {
  margin: 0;
  font-size: 1.0625rem;
}

.info ol,
.info ul { padding-left: 1.4em; }

.info li { margin: 0 0 12px; padding-left: 4px; }
.info li:last-child { margin-bottom: 0; }

/* Footer */

footer {
  max-width: 560px;
  margin: 88px auto 0;
  padding: 32px 0 0;
  border-top: 1px solid #3d3d3d;
  color: #a6a6a6;
  font-size: .9375rem;
  text-align: center;
}

footer p { margin: 0 0 8px; }

footer a { color: #f2f2f2; }

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

@media (prefers-reduced-motion: reduce) {
  .links a { -webkit-transition: none; transition: none; }
}
