:root {
  color-scheme: light;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #173a33;
  background: #f8f8f3;
  font-synthesis: none;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid #cf6842;
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1;
  padding: 0.5rem 1rem;
  background: #fff;
}
.skip-link:focus {
  top: 1rem;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.7rem 2.5rem;
  border-bottom: 1px solid #dde3db;
}
.brand {
  font-size: 1.1rem;
  font-weight: 750;
  text-decoration: none;
}
.brand span {
  font-weight: 400;
  color: #617169;
}
nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}
nav a {
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
.quiet-button {
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: underline;
  color: #617169;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}
.hero {
  max-width: 760px;
  padding: 5rem 0 2rem;
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: #8f5339;
}
h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 1.1;
  font-weight: 650;
  margin: 1.1rem 0 1.5rem;
}
h2 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}
h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0 0 0.7rem;
}
p {
  margin: 0.7rem 0;
}
.intro {
  max-width: 630px;
  color: #617169;
  font-size: 1.1rem;
}
.account {
  font-size: 0.85rem;
  color: #617169;
  margin-top: 1.5rem;
}
#status {
  color: #923c2c;
}
#status:empty {
  display: none;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border: 1px solid #dde3db;
  border-radius: 0.8rem;
}
.welcome p {
  color: #617169;
}
#sign-in {
  background: #153c35;
  color: #fff;
  padding: 0.9rem 1.2rem;
  border: 1px solid #153c35;
  border-radius: 0.4rem;
  white-space: nowrap;
}
#sign-in:hover:not(:disabled) {
  background: #25554a;
}
#sign-in span {
  margin-left: 1.5rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dde3db;
}
.section-heading p {
  font-size: 0.85rem;
  color: #617169;
}
.tool-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}
.tool-card {
  background: #fff;
  border: 1px solid #dde3db;
  border-radius: 0.7rem;
  padding: 1.5rem;
}
.tool-card h3 a {
  text-decoration: none;
}
.tool-card h3 a:hover {
  text-decoration: underline;
}
.tool-card p {
  color: #617169;
}
.tool-card .tool-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #edf0e9;
}
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  border: 1px dashed #c7d1c4;
  border-radius: 0.7rem;
  background: #f1f4ec;
  margin: 1.5rem 0;
}
.empty-state p {
  color: #617169;
  max-width: 540px;
  margin: 0 auto;
}
.empty-symbol {
  display: block;
  color: #8f5339;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contribute {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  margin-top: 2.5rem;
  border-top: 1px solid #dde3db;
}
.contribute div {
  max-width: 600px;
}
.contribute p:not(.eyebrow) {
  color: #617169;
  font-size: 0.95rem;
}
.guide-link {
  font-size: 0.9rem;
  white-space: nowrap;
}
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #dde3db;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #617169;
  font-size: 0.75rem;
}

@media (max-width: 680px) {
  .masthead {
    padding: 1.3rem 1.3rem;
  }
  nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }
  main {
    padding: 0 1.3rem 2rem;
  }
  .hero {
    padding: 3rem 0 1.5rem;
  }
  .welcome,
  .contribute {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .welcome {
    padding: 1.5rem;
  }
  .empty-state {
    padding: 2.5rem 1.3rem;
  }
  footer {
    padding: 1.3rem;
    flex-direction: column;
    gap: 0.3rem;
  }
}
