:root {
  color-scheme: light;
  --page: #a94911;
  --page-dark: #5d2208;
  --paper: #fff4cc;
  --panel: #fffdf0;
  --ink: #2c1b0d;
  --muted: #73583b;
  --line: #b87b2d;
  --link: #8b2b00;
  --orange: #df6f00;
  --orange-dark: #8f3500;
  --yellow: #ffd15d;
  --green: #789b14;
  --red: #b42516;
  --shadow: rgba(70, 28, 8, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 240, 170, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 240, 170, 0.12) 1px, transparent 1px),
    radial-gradient(circle at top, #f0a33c 0, var(--page) 42%, var(--page-dark) 100%);
  background-size: 18px 18px, 18px 18px, auto;
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

a {
  color: var(--link);
}

.page-shell {
  width: min(1160px, calc(100% - 24px));
  margin: 18px auto;
  background: var(--paper);
  border: 1px solid #ffe6a1;
  box-shadow:
    0 0 0 1px #6a2600,
    0 13px 34px var(--shadow);
}

.site-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 128px;
  padding: 28px 28px 20px;
  color: #fff9db;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 35%),
    linear-gradient(90deg, #8f3500, #df6f00 58%, #ffc04d);
  border: 1px solid #ffd683;
  border-bottom-color: #6d2500;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff9db;
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(73, 24, 0, 0.35);
}

.brand-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff6c4, #ffd15d 45%, #d07300);
  border: 1px solid #fff0a6;
  box-shadow:
    inset -2px -2px 0 rgba(96, 35, 0, 0.28),
    inset 2px 2px 0 rgba(255, 255, 255, 0.76),
    2px 2px 0 rgba(87, 31, 0, 0.24);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tagline {
  max-width: 290px;
  margin: 0 0 6px;
  color: #fff7c6;
  font-size: 0.9rem;
  text-align: right;
  text-shadow: 1px 1px 0 rgba(73, 24, 0, 0.45);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  padding: 0 14px;
  background:
    linear-gradient(180deg, #fff8ba, #ffd15d 48%, #d98711 49%, #f3a526);
  border-top: 1px solid #fff1a5;
  border-bottom: 1px solid #874000;
}

.site-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 15px;
  color: #321500;
  border-left: 1px solid rgba(255, 255, 255, 0.62);
  border-right: 1px solid rgba(123, 56, 0, 0.46);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.38);
  color: #8b2b00;
}

main {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #dfb66d;
}

.hero {
  padding: 28px;
}

.eyebrow,
.tool-status {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.tools-section h2 {
  margin: 0;
  color: #7a2d00;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 23px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #7b3900;
  color: #fff9db;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 42%),
    linear-gradient(180deg, #f19920, #a54700);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.82),
    1px 1px 0 rgba(75, 28, 0, 0.24);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: #5c760e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(180deg, #b1d847, #638b13);
  color: #1f3000;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 6px 10px;
  color: #fff9db;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 48%),
    linear-gradient(180deg, var(--orange), var(--orange-dark));
  border-bottom: 1px solid #6f2800;
  font-size: 0.8rem;
  font-weight: 700;
}

.tools-section {
  padding: 0 0 18px;
}

.tools-section h2,
.tool-grid {
  margin-left: 18px;
  margin-right: 18px;
}

.tools-section h2 {
  margin-top: 18px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tool-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  min-height: 188px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fff2c5);
  border: 1px solid #d09942;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #d9b066;
}

.tool-card.featured {
  background: linear-gradient(180deg, #ffffdf, #edf6bd);
  border-color: #9a9f30;
}

.tool-card h3 {
  margin: 0 0 9px;
  color: #8b2b00;
  font-size: 1.13rem;
  line-height: 1.16;
}

.tool-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  color: #fff0b0;
  background: #682500;
  border-top: 1px solid #431700;
  font-size: 0.82rem;
}

.construction-page {
  min-height: 100vh;
}

.construction-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.construction-box {
  width: min(560px, 100%);
  padding-bottom: 34px;
}

.construction-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px 18px;
  text-align: center;
}

.construction-brand .brand-mark {
  width: 86px;
  height: 86px;
}

.construction-brand h1 {
  margin: 0;
  color: #7a2d00;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  line-height: 1;
}

.construction-brand p {
  margin: 0;
  color: var(--red);
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  font-weight: 700;
}

@media (max-width: 920px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100% - 14px);
    margin: 7px auto;
  }

  .site-header {
    align-items: start;
    flex-direction: column;
  }

  .tagline {
    max-width: none;
    text-align: left;
  }

  .tool-grid,
  .tool-grid.two-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 9px;
  }

  .hero {
    padding: 16px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .site-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
