/* Red Castle Products & Solutions — static site preview
   Palette sampled from the official logo and the Oct 22 store branding notes.
   Official logo files are used as-is and are not restyled. */

:root {
  --cream: #e9dcc6;
  --cream-dark: #dfd0b6;
  --white: #ffffff;
  --off-white: #f8f4ec;
  --charcoal: #222222;
  --maroon: #48102a;
  --deep-red: #b0282e;
  --castle-red: #e8302a;
  --stone: #d99a90;
  --link: #8a1f28;
  --max: 68rem;
  --radius: 0.6rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
}

img { max-width: 100%; height: auto; }

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

a:hover { color: var(--deep-red); }

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--deep-red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--white);
  color: var(--maroon);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  display: block;
  height: 3.75rem;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover { text-decoration: underline; }

.nav a[aria-current="page"] {
  color: var(--deep-red);
  text-decoration: underline;
}

.nav .store-link {
  background: var(--deep-red);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav .store-link:hover { color: var(--white); filter: brightness(0.95); }

/* Hero */
.hero {
  padding: 2.25rem 0 2.5rem;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(22rem, 85vw);
  margin: 0 auto 1.25rem;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--maroon);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--maroon);
  margin: 0 0 0.85rem;
}

.lede {
  margin: 0 auto 1.4rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  background: var(--deep-red);
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
}

.btn:hover { color: var(--white); filter: brightness(0.95); }

.btn-secondary {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}

.btn-secondary:hover { color: var(--deep-red); border-color: var(--deep-red); filter: none; }

/* Pages */
main { flex: 1 0 auto; padding-bottom: 3rem; }
.site-footer { flex-shrink: 0; }

.page-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 1.75rem 0 0.75rem;
}

.intro { max-width: 42rem; margin-bottom: 1.5rem; }

section h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon);
  font-size: 1.35rem;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--stone);
}

/* Product cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
}

.card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  color: var(--maroon);
}

.card .meta {
  font-size: 0.9rem;
  color: #444;
}

.card .card-link {
  margin-top: auto;
  font-weight: 650;
  text-decoration: none;
}

.card .card-link:hover { text-decoration: underline; }

/* Crosslabel / About */
.prose { max-width: 42rem; }

.prose p { margin: 0 0 1rem; }

.link-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.link-list li { margin: 0.4rem 0; }


.note {
  font-size: 0.95rem;
  color: #333;
}


/* Home: Crosslabel lead, then Gumroad products */
.lead {
  padding: 2.1rem 0 2.2rem;
  text-align: left;
}

.lead .kicker {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
}

.lead h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: var(--maroon);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.lead .lede {
  margin: 0 0 1.25rem;
  max-width: 42rem;
}

.lead .cta-row { justify-content: flex-start; }

.lead .more {
  margin: 1rem 0 0;
  font-weight: 650;
}

.tool-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0.35rem 0 0;
  align-items: stretch;
}

@media (min-width: 720px) {
  .tool-pair { grid-template-columns: 1fr 1fr; }
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.tool-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon);
  font-size: 1.3rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.tool-card p {
  margin: 0;
}

.tool-card .cta-row {
  margin-top: auto;
  padding-top: 0.35rem;
}


.home-store {
  background: var(--off-white);
  border-top: 1px solid var(--cream-dark);
  padding: 2rem 0 2.4rem;
}

.home-store h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon);
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  margin: 0 0 0.4rem;
  border: 0;
  padding: 0;
}

.home-store .tagline {
  text-align: left;
  margin: 0 0 0.65rem;
}

.home-store .lede {
  margin: 0 0 1.2rem;
  max-width: 42rem;
}

.cta-row-start { justify-content: flex-start; }

/* Footer */
.site-footer {
  background: var(--maroon);
  color: var(--cream);
  padding: 1.6rem 0 1.8rem;
  margin-top: 1rem;
}

.site-footer a { color: var(--cream); }

.site-footer a:hover { color: var(--white); }

.site-footer .legal {
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 0.75rem;
}

.footer-contact { margin: 0 0 0.6rem; }
.copyright { margin: 0; font-size: 0.95rem; }
