/* Quietsay site. No animations, no external files, no scripts. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --panel: #fbf9f4;
  --text: #1f2a2b;
  --muted: #4a5657;
  --line: #cfc8b8;
  --accent: #2f6266;
  --on-accent: #f3efe6;
  --link: #23505a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161d1e;
    --panel: #1f2829;
    --text: #ece7da;
    --muted: #b7bfba;
    --line: #3a4748;
    --accent: #2f6266;
    --on-accent: #f3efe6;
    --link: #9fd0d3;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text: #000000;
    --muted: #1f2a2b;
    --line: #000000;
    --link: #0b3a42;
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --panel: #000000;
    --text: #ffffff;
    --muted: #ffffff;
    --line: #ffffff;
    --link: #bfe6e8;
  }
}

* {
  box-sizing: border-box;
  animation: none !important;
  transition: none !important;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1rem;
}
.skip:focus {
  left: 0;
  z-index: 1;
}

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  min-height: 3.5rem;
}
.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
}
nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 600;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  font-weight: 600;
}
p,
ul,
ol {
  margin: 0 0 1rem;
}
ul,
ol {
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.25rem;
}
.muted {
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.panel > :last-child {
  margin-bottom: 0;
}
.panel h2:first-child,
.panel h3:first-child {
  margin-top: 0;
}
h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.button-secondary {
  background: var(--panel);
  color: var(--text);
  border: 2px solid var(--line);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 1.5rem;
}
.shots figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.75rem;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
}
.shots figcaption {
  margin-top: 0.625rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.copy-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  margin: 1rem 0;
  font-size: 1rem;
}
.copy-box > :last-child {
  margin-bottom: 0;
}

footer.site {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  font-size: 1rem;
  color: var(--muted);
}
footer.site p {
  margin-bottom: 0.75rem;
}
footer.site a {
  display: inline-block;
  min-height: 2.75rem;
  line-height: 2.75rem;
}
