:root {
  --ink: #28211c;
  --muted: #6d6259;
  --bg: #fcfbfa;
  --soft: #f7f4f1;
  --panel: #fff;
  --line: #e8e2dc;
  --accent: #b35732;
  --accent-dark: #974624;
  --orange: #ff6d00;
  --green: #2f6b4d;
  --shadow: 0 10px 26px rgba(40, 33, 28, 0.05);
}

@font-face {
  font-family: RundDisplay;
  src: url("https://campground-website.pages.dev/fonts/RundDisplay-Bold.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .page-shell {
  display: none;
}

a {
  color: inherit;
}

.password-screen {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.is-locked .password-screen {
  display: grid;
}

.password-card {
  display: grid;
  width: min(460px, 100%);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.password-card h1 {
  font-size: clamp(3.5rem, 13vw, 5.4rem);
}

.password-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.password-label span {
  color: var(--ink);
  font-weight: 700;
}

.password-label input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

.password-error {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: #a33f2f;
  font-size: 0.95rem;
  font-weight: 700;
}

.button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 14px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffaf6;
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  margin-bottom: 20px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 220px;
  padding: 24px 0 0;
}

.eyebrow,
.section-kicker,
.panel-label,
.meta,
.status,
.count {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: RundDisplay, "Public Sans", system-ui, sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

h1 {
  max-width: 760px;
  margin-top: 8px;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
}

h2 {
  margin-top: 6px;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
}

.intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.tools-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.section-header {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.count {
  padding-bottom: 8px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  --accent: var(--orange);
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: none;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(40, 33, 28, 0.1);
  outline: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.status {
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef6f1;
  padding: 6px 10px;
  letter-spacing: 0;
  text-transform: none;
}

.card-body {
  display: block;
  margin-top: 38px;
}

.card-title {
  display: block;
  margin-top: 10px;
  font-family: RundDisplay, "Public Sans", system-ui, sans-serif;
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.card-description {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 700;
}

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1440px);
    padding: 18px 0;
  }

  .hero {
    min-height: 0;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .section-header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .count {
    padding-bottom: 0;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 260px;
  }
}
