/* Nonogram Nook: the "Cottage window" look from docs/decisions.md section 9. */

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #f6ebdd;
  --surface: #fffdf8;
  --line: #e6d8c6;
  --text: #5a4036;
  --muted: #7a6155;
  --accent: #9db58f;
  --on-accent: #2f3b2a;
  --link: #4e6b45;
  --highlight: #e3a9a0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2b2420;
    --surface: #3a302a;
    --line: #4a3e36;
    --text: #f3e6d6;
    --muted: #c2af9e;
    --accent: #a9c29b;
    --on-accent: #24301f;
    --link: #b9d1ab;
    --highlight: #e8b0a6;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 2rem 0 0.75rem;
}

h1 {
  font-size: 2.5rem;
  margin-top: 1rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

p,
ul {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

.muted {
  color: var(--muted);
}

.hero {
  text-align: center;
}

.hero .icon {
  width: 7rem;
  height: 7rem;
  border-radius: 1.6rem;
  box-shadow: 0 6px 18px rgb(90 64 54 / 0.18);
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
}

.shots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2.5rem 0 1rem;
}

.shots img {
  width: 30%;
  max-width: 13rem;
  height: auto;
  border-radius: 1.25rem;
  border: 6px solid var(--surface);
  box-shadow: 0 6px 18px rgb(90 64 54 / 0.18);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 0.25rem 1.5rem 0.75rem;
  margin: 1.5rem 0;
}

.card h2 {
  margin-top: 1.25rem;
}

.sprig {
  display: block;
  margin: 0 auto;
}

nav.top {
  font-weight: 800;
}

nav.top a {
  text-decoration: none;
}

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  margin-right: 1.25rem;
  display: inline-block;
  padding: 0.5rem 0;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 2rem;
  }
  .shots {
    gap: 0.5rem;
  }
  .shots img {
    border-width: 3px;
    border-radius: 0.75rem;
  }
}
