/* ==========================================================================
   Ironsides — civic broadside
   Palette: Ink Navy, Slate Iron, Parchment, Brass, Oxblood
   ========================================================================== */

:root {
  --ink-navy:   #1B2A4A;
  --slate-iron: #3E4A57;
  --parchment:  #F4EEE1;
  --brass:      #B98A36;
  --oxblood:    #9E3A2F;

  --parchment-deep: #ebe3d2;
  --brass-soft: rgba(185, 138, 54, 0.32);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  color: var(--ink-navy);
  background-color: var(--parchment);
  /* Warm vignette + faint top-light to give the parchment depth */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(244, 238, 225, 0.9), rgba(0, 0, 0, 0) 60%),
    radial-gradient(140% 120% at 50% 120%, rgba(27, 42, 74, 0.10), rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, var(--parchment), var(--parchment-deep));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain overlay --------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* Frame ----------------------------------------------------------------- */
.frame {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

/* A hairline brass rule drawn just inside the frame edge */
.frame::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.5rem);
  border: 1px solid var(--brass-soft);
  pointer-events: none;
}

/* Masthead -------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.75rem) 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink-navy);
}

.seal {
  display: block;
  width: 2.4rem;
  height: auto;
  /* lift the crest off the parchment without a hard box */
  filter: drop-shadow(0 1px 2px rgba(27, 42, 74, 0.28));
}

.wordmark__text {
  font-weight: 300;
  font-size: 1.65rem;
  letter-spacing: 0.12em;
}

.masthead__est {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-iron);
  text-align: right;
}

/* Broadside body -------------------------------------------------------- */
.broadside {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--measure);
  padding: clamp(2.5rem, 8vh, 6rem) 1.75rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.eyebrow__rule {
  width: 2.75rem;
  height: 1px;
  background: var(--oxblood);
}

.headline {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.7rem, 7vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.headline .line {
  display: block;
}

.headline__accent {
  font-style: italic;
  font-weight: 400;
  color: var(--oxblood);
}

.lede {
  max-width: 32rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--slate-iron);
}

.rule {
  width: 100%;
  height: 0;
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--brass-soft);
  position: relative;
}

.rule::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 3.5rem;
  height: 5px;
  background: var(--brass);
}

.body {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--slate-iron);
}

.body abbr {
  font-variant: small-caps;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-navy);
  font-weight: 600;
  cursor: help;
}

/* Values ---------------------------------------------------------------- */
.values {
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--brass-soft);
}

.values__title {
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate-iron);
}

.values__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--brass-soft);
  border: 1px solid var(--brass-soft);
}

.value {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem 1.25rem;
  background: var(--parchment);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.value:hover {
  background: var(--ink-navy);
  transform: translateY(-2px);
}

.value__num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brass);
}

.value__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-navy);
  transition: color 0.4s var(--ease);
}

.value:hover .value__name {
  color: var(--parchment);
}

.value__blurb {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--slate-iron);
  transition: color 0.4s var(--ease);
}

.value:hover .value__blurb {
  color: rgba(244, 238, 225, 0.78);
}

/* Colophon -------------------------------------------------------------- */
.colophon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: clamp(1rem, 3vh, 2rem) clamp(0.5rem, 2vw, 1.75rem);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-iron);
}

.colophon__dot {
  color: var(--brass);
}

.colophon a {
  color: var(--brass);
  text-decoration: none;
  padding-bottom: 1px;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.1s var(--ease), color 0.1s var(--ease);
}

.colophon a:hover,
.colophon a:focus-visible {
  color: var(--oxblood);
  background-image: linear-gradient(var(--oxblood), var(--oxblood));
  background-size: 100% 1px;
  outline: none;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 600px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .masthead__est {
    text-align: left;
  }

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