/* =========================================================================
   Rust Belt Standards LLC — rustbeltstandards.com
   Single-page site stylesheet.

   Palette discipline:
   - RBS shell (header / hero / philosophy / footer) uses the RBS palette only.
   - Coastward and ChuckEd each keep their own palette, scoped to their own
     card. They are two labeled instruments mounted on one panel, not one
     blended site-wide gradient.
   ========================================================================= */

:root {
  /* RBS shell */
  --navy:        #1E3A4C;
  --navy-deep:   #162C3A;
  --navy-line:   #2C4E62;
  --steel:       #7FB8C9;
  --cream:       #F4F1EC;
  --grey:        #6E7A85;
  --light:       #EAF1F4;
  --muted:       #9AA7B2;

  /* Coastward */
  --cw-ink:      #1C2B39;
  --cw-rust:     #BB4A2E;
  --cw-teal:     #3E6E68;
  --cw-gold:     #C89B3C;
  --cw-paper:    #EDE7DA;

  /* ChuckEd */
  --ce-blue:     #041E42;
  --ce-gold:     #A89968;
  --ce-light:    #E8E6DF;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.1; font-weight: 700; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Small monospace factual labels — used sparingly, the way a stamped
   spec plate uses real numbers. Never for headlines. */
.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 500;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cream);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================ Header ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--light);
}

.brand img { width: 36px; height: 36px; border-radius: 7px; }

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--light); border-bottom-color: var(--steel); }

/* ============================= Hero ============================= */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--light);
  padding-block: clamp(64px, 11vw, 132px) clamp(72px, 12vw, 140px);
}

/* One quiet technical detail: a faint measuring grid, fading out downward. */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(127,184,201,.14) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, rgba(127,184,201,.10) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}

/* Corner registration marks. */
.reg {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 0 solid rgba(127,184,201,.55);
  pointer-events: none;
}
.reg-tl { top: 22px; left: 22px; border-top-width: 1px; border-left-width: 1px; }
.reg-tr { top: 22px; right: 22px; border-top-width: 1px; border-right-width: 1px; }
.reg-bl { bottom: 22px; left: 22px; border-bottom-width: 1px; border-left-width: 1px; }
.reg-br { bottom: 22px; right: 22px; border-bottom-width: 1px; border-right-width: 1px; }

.hero .wrap { position: relative; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: end;
}

.hero-stamp {
  color: var(--steel);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stamp::after {
  content: "";
  flex: 0 1 96px;
  height: 1px;
  background: rgba(127,184,201,.45);
}

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  max-width: 16ch;
  color: var(--cream);
}

.hero h1 .accent { color: var(--steel); }

.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 31ch;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary { background: var(--steel); color: #12303F; }
.btn-primary:hover { background: #9BCBD9; }

.btn-ghost { border-color: var(--navy-line); color: var(--light); }
.btn-ghost:hover { border-color: var(--steel); color: #fff; }

/* The spec plate — real numbers, riveted to the panel. */
.spec-plate {
  border: 1px solid var(--navy-line);
  background: rgba(10, 28, 39, .38);
  padding: 22px 24px 8px;
  position: relative;
}

.spec-plate::before,
.spec-plate::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(127,184,201,.42);
}
.spec-plate::before { top: 9px; left: 9px; }
.spec-plate::after  { bottom: 9px; right: 9px; }

.spec-plate dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
}

.spec-plate dt,
.spec-plate dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(127,184,201,.16);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.spec-plate dt { color: var(--steel); padding-right: 20px; }
.spec-plate dd { color: var(--light); text-align: right; }

.spec-plate dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ========================== Products ========================== */

.products {
  background: var(--cream);
  padding-block: clamp(64px, 9vw, 108px);
  border-bottom: 1px solid rgba(30,58,76,.10);
}

.section-head { max-width: 52ch; }

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.028em;
}

.section-head p {
  margin-top: 16px;
  color: var(--grey);
  font-size: 1.05rem;
  max-width: 56ch;
}

.product-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 30px);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 4px;
  border-top: 3px solid;
  position: relative;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.card-icon {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  flex: none;
}

.card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.card-tag {
  margin-top: 4px;
  font-size: 14.5px;
  font-weight: 500;
}

.card-body {
  margin-top: 24px;
  font-size: 16.5px;
  line-height: 1.62;
}

.card-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.card-list li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  font-size: 15.5px;
  line-height: 1.45;
  border-top: 1px solid;
}

.card-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 1px;
  transform: rotate(45deg);
}

.card-foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* -- Coastward: its own palette, inside its own card. -- */
.card-coastward {
  background: var(--cw-paper);
  color: var(--cw-ink);
  border-top-color: var(--cw-rust);
}
.card-coastward .card-tag { color: var(--cw-rust); }
.card-coastward .card-body { color: #33465A; }
.card-coastward .card-list li { border-top-color: rgba(28,43,57,.14); }
.card-coastward .card-list li::before { background: var(--cw-teal); }
.card-coastward .status { color: var(--cw-teal); }
.card-coastward .card-meta { color: rgba(28,43,57,.55); }
.card-coastward .card-title-link { text-decoration: none; }
.card-coastward .card-title-link:hover { color: var(--cw-rust); }
.card-coastward .card-link {
  margin-left: auto;
  color: var(--cw-rust);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(187,74,46,.35);
  transition: border-color .15s ease;
}
.card-coastward .card-link:hover { border-bottom-color: var(--cw-rust); }

/* -- ChuckEd: its own palette, inside its own card. -- */
.card-chucked {
  background: var(--ce-blue);
  color: var(--ce-light);
  border-top-color: var(--ce-gold);
}
/* The ChuckEd mark is half Akron Blue, so it is mounted on a light plate
   rather than dropped straight onto the blue card. */
.card-chucked .card-icon {
  background: #F2F0EA;
  padding: 9px;
  border-radius: 15px;
}
.card-chucked h3 { color: #FFFFFF; }
.card-chucked .card-tag { color: var(--ce-gold); }
.card-chucked .card-body { color: #C9CEDA; }
.card-chucked .card-list li { border-top-color: rgba(232,230,223,.16); }
.card-chucked .card-list li::before { background: var(--ce-gold); }
.card-chucked .status { color: var(--ce-gold); }
.card-chucked .card-meta { color: rgba(232,230,223,.55); }

/* ========================= Philosophy ========================= */

.philosophy {
  background: var(--navy);
  color: var(--light);
  padding-block: clamp(64px, 9vw, 108px);
}

.philosophy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--cream);
  letter-spacing: -0.028em;
  max-width: 20ch;
}

.philosophy-lead {
  margin-top: 18px;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.05rem;
}

.principles {
  margin: clamp(36px, 5vw, 52px) 0 0;
  border-top: 1px solid var(--navy-line);
}

.principle {
  display: grid;
  grid-template-columns: 46px minmax(150px, 210px) minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--navy-line);
}

.principle-no { color: var(--steel); }

.principle-term {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.012em;
}

.principle-desc { color: var(--muted); font-size: 15.5px; }

.philosophy-tagline {
  margin-top: clamp(34px, 4vw, 46px);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--cream);
}

.philosophy-tagline span { color: var(--steel); }

/* =========================== Contact =========================== */

.contact {
  background: var(--cream);
  padding-block: clamp(56px, 8vw, 92px);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.028em;
}

.contact p {
  margin-top: 16px;
  color: var(--grey);
  max-width: 46ch;
}

.contact-plate {
  border: 1px solid rgba(30,58,76,.16);
  border-radius: 4px;
  background: #FFFFFF;
  padding: 26px 28px;
}

.contact-row { padding: 12px 0; border-bottom: 1px solid rgba(30,58,76,.10); }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }

.contact-label { color: var(--grey); display: block; margin-bottom: 6px; }

.contact-value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  word-break: break-word;
}

a.contact-value { border-bottom: 1px solid rgba(30,58,76,.3); }
a.contact-value:hover { color: #10505F; border-bottom-color: currentColor; }

/* ============================ Footer ============================ */

.site-footer {
  background: var(--navy-deep);
  color: var(--muted);
  padding-block: clamp(40px, 6vw, 60px) 30px;
  border-top: 1px solid var(--navy-line);
  font-size: 14.5px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--navy-line);
}

.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--light); }
.footer-brand img { width: 32px; height: 32px; border-radius: 6px; }
.footer-brand .brand-name { font-size: 15.5px; }
.footer-location { margin-top: 10px; color: var(--muted); font-size: 14px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.footer-links a:hover { color: var(--light); border-bottom-color: var(--steel); }

.footer-bottom {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: #7C8B98;
}

/* ========================= Legal page ========================= */

.legal {
  background: var(--cream);
  padding-block: clamp(48px, 7vw, 84px);
}

.legal-inner { max-width: 74ch; }

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.legal .effective { margin-top: 14px; color: var(--grey); }

.legal h2 {
  margin-top: 42px;
  font-size: 1.22rem;
  letter-spacing: -0.016em;
  padding-top: 22px;
  border-top: 1px solid rgba(30,58,76,.14);
}

.legal p, .legal ul { margin-top: 15px; color: #3E5361; }
.legal ul { padding-left: 20px; }
.legal li { margin-top: 8px; }
.legal a { color: #16607A; }

.legal .back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--grey);
  text-decoration: none;
}
.legal .back:hover { color: var(--navy); }

.legal-contact {
  margin-top: 34px;
  border: 1px solid rgba(30,58,76,.16);
  border-radius: 4px;
  background: #fff;
  padding: 22px 24px;
}
.legal-contact strong { display: block; color: var(--navy); }

/* =========================== Responsive =========================== */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero h1 { max-width: 18ch; }
  .spec-plate { margin-top: 8px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .principle { grid-template-columns: 40px minmax(0, 1fr); }
  .principle-desc { grid-column: 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 64px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 15.5px; }
  .nav { gap: 15px; }
  .nav a { font-size: 13.5px; }
  .hero-stamp::after { display: none; }
  .hero h1 { max-width: none; }
  .hero-sub { max-width: none; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .card-top { gap: 14px; }
  .card-icon { width: 56px; height: 56px; border-radius: 13px; }
  .reg { width: 11px; height: 11px; }
  .reg-tl, .reg-tr { top: 14px; }
  .reg-bl, .reg-br { bottom: 14px; }
  .reg-tl, .reg-bl { left: 14px; }
  .reg-tr, .reg-br { right: 14px; }
}

/* Keep the wordmark next to the mark for as long as the header can hold it
   without crowding the nav. */
@media (max-width: 440px) {
  :root { --gutter: 15px; }
  .site-header .wrap { gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 13px; }
  .nav { gap: 11px; }
  .nav a { font-size: 12px; }
  .footer-brand .brand-name { font-size: 15px; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}
