/* Red Gate — static site. No external requests or trackers. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Italic.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --red: #D7263D;
  --red-dark: #A71C2F;
  --ink: #1A1414;
  --muted: #5E5652;
  --paper: #F7F3EE;
  --paper-2: #EFE8E0;
  --white: #FFFCFA;
  --line: #DED6CC;
  --max: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 430;
  line-height: 1.6;
  letter-spacing: 0.005em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }
.wrap { width: min(var(--max), calc(100% - 2 * var(--pad))); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: auto; height: 64px; }
.brand .who { display: flex; flex-direction: column; line-height: 1.15; }
.brand .who strong { font-family: var(--serif); font-weight: 550; font-size: 1.05rem; }
.brand .who span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.site-header ul {
  display: flex; flex-wrap: wrap; gap: 0.15rem 1.15rem;
  list-style: none; margin: 0; padding: 0;
  justify-content: flex-end;
}
.site-header li a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
}
.site-header li a:hover,
.site-header li a[aria-current="page"] { color: var(--red); }

/* Hero */
.hero { padding: 4.2rem 0 3.4rem; }
.hero .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 650;
  margin: 0 0 0.9rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.15rem, 5.4vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  max-width: 18ch;
}
.hero .lead { font-size: 1.2rem; max-width: 40rem; color: var(--muted); margin: 0 0 1.7rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  font-weight: 620; font-size: 0.98rem;
  padding: 0.72rem 1.2rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--red);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }

.enthusiast .photo { margin: 0 0 1.7rem; max-width: 56rem; }
.enthusiast .photo img { width: 100%; border-radius: 2px; }
.enthusiast .photo figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }

/* Sections */
section { padding: 3.2rem 0; }
section.tint { background: var(--white); }
section.earth { background: var(--ink); color: #f4ece6; }
section.earth .lead, section.earth p { color: #c9bfb6; }
section.earth h2, section.earth h3 { color: #fff; }
section.earth a { color: #ffd4d8; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 42rem; }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
h3 { font-family: var(--serif); font-weight: 550; font-size: 1.22rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.grid { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.grid-4, .grid-2 { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
@media (min-width: 700px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-4.three { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-4.three { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem 1.35rem;
  border-top: 3px solid var(--red);
}
section.tint .card { background: var(--paper); }
section.earth .card { background: #241c1c; border-color: #3a2f2f; color: #f4ece6; }
.card p { margin: 0; color: var(--muted); }
section.earth .card p { color: #c9bfb6; }
.card .n {
  font-family: var(--serif);
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 550;
  margin-bottom: 0.35rem;
}

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 1.2rem 0 0;
  max-width: 28rem;
}
.quote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* Lists / credentials */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  padding: 0.55rem 0 0.55rem 1.3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.6rem; height: 2px; background: var(--red); }

/* Two column */
.two { display: grid; gap: 1.6rem; margin-top: 1.2rem; }
@media (min-width: 800px) { .two { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }

/* Contact */
.contact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.contact-list li { margin: 0 0 0.65rem; }
.contact-list span:first-child { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Mars homes pair */
.homes { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
@media (min-width: 800px) { .homes { grid-template-columns: 1fr 1fr; } }
.home { padding: 1.3rem 1.25rem 1.4rem; border: 1px solid var(--line); background: var(--white); }
.home .tag { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); font-weight: 650; margin-bottom: 0.7rem; }
section.earth .home { background: #241c1c; border-color: #3a2f2f; }
.caption { font-size: 0.82rem; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
details summary { cursor: pointer; font-weight: 620; }
details p { margin: 0.6rem 0 0.3rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9bfb6;
  padding: 2.4rem 0 2.6rem;
  font-size: 0.9rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.7rem; }
.site-footer a { color: #ffd4d8; }
.site-footer .lockup { height: 110px; width: auto; margin-bottom: 1.1rem; }
.site-footer p { margin: 0.55rem 0; max-width: 52rem; }
.fine { font-size: 0.8rem; color: #9a9088; }

@media (max-width: 699px) {
  .brand img { height: 52px; }
  .brand .who { display: none; }
  .site-header nav { flex-wrap: wrap; }
  .site-header ul { width: 100%; justify-content: flex-start; gap: 0.35rem 0.95rem; }
  .hero { padding: 2.4rem 0 2.2rem; }
  section { padding: 2.3rem 0; }
}
