/* ===========================================================================
   Main Streets Media - parent lander ("Pacific Blue")
   Maritime mood: deep harbour navy ground, seafoam accent, bone-white type.
   --------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Palette */
  --bg: #0b2942;            /* page ground (harbour navy) */
  --headings: #eef1ea;      /* bone-white headings */
  --body: #c7d3d6;          /* primary body text */
  --muted: #9fb1b8;         /* secondary / muted text */
  --accent: #6db7b0;        /* seafoam accent */
  --quote: #a7d4cf;         /* pull-quote tint */
  --hairline: #1e3d54;      /* structural rules + dividers */
  --panel: #102f49;         /* raised card / panel fill */
  --panel-border: #1e3d54;  /* 1px panel border */
  --meta: #7e96a2;          /* property meta */
  --on-accent: #07212f;     /* text on seafoam pill */
  --legal: #5f7682;         /* footer legal row */
  --dot-muted: #6f8694;     /* muted bullet dot */

  /* Type families */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing scale (4pt-based) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 60px;

  /* Layout */
  --content-max: 680px;
  --side-pad: 80px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  color: var(--body);
  font-family: var(--font-display);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

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

/* --- Shared content column ------------------------------------------------ */

.content-col {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.section {
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--side-pad);
}

/* --- Header / nav --------------------------------------------------------- */

.site-header {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--hairline);
  padding: 30px var(--side-pad);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: var(--headings);
  text-decoration: none;
}

.contact-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background-color: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 18px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  background-color: var(--quote);
}

/* --- Eyebrows + hairlines ------------------------------------------------- */

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}

.eyebrow-label {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-place,
.eyebrow-aside {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hairline {
  flex: 1 1 0;
  height: 1px;
  background-color: var(--hairline);
}

/* --- Letter --------------------------------------------------------------- */

.letter .eyebrow-row {
  padding-bottom: 30px;
}

.salutation {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 26px;
  color: var(--muted);
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: 54px;
  line-height: 60px;
  letter-spacing: -0.015em;
  color: var(--headings);
}

.letter-body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 38px;
}

.letter-body p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 32px;
  color: var(--body);
}

.pull-quote {
  margin: 0;
  padding: 14px 0 14px 20px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: 27px;
  line-height: 36px;
  color: var(--quote);
}

.sign-off {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-top: 40px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 26px;
}

.sign-off-lead {
  font-style: italic;
  color: var(--body);
}

.sign-off-name {
  font-weight: 500;
  color: var(--headings);
}

.postscript {
  margin-top: 44px;
  padding-top: 46px;
  border-top: 1px solid var(--hairline);
}

.ps-lead {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 24px;
  color: var(--quote);
}

.dotted-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.dotted-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 25px;
  color: var(--body);
}

.dotted-item-muted {
  color: var(--muted);
}

.dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: translateY(-2px);
}

.dot-muted {
  background-color: var(--dot-muted);
}

/* --- Properties ----------------------------------------------------------- */

.properties .eyebrow-row {
  padding-bottom: 30px;
}

.property-card {
  display: flex;
  align-items: center;
  gap: 26px;
  background-color: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 24px;
}

.property-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 47px;
}

.yyj-logo {
  width: 58px;
  height: 47px;
  fill: var(--headings);
}

.property-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.property-descriptor {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
  color: var(--muted);
}

.property-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--meta);
}

.property-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.property-status .dot {
  width: 8px;
  height: 8px;
  transform: none;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.properties-note {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

/* --- Section headings (advertise / why) ----------------------------------- */

.section-heading {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: 32px;
  line-height: 38px;
  color: var(--headings);
}

.section-intro {
  margin: 24px 0 0;
  max-width: 610px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 25px;
  color: var(--body);
}

.section-closing {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 28px;
  color: var(--accent);
}

.section-closing a {
  color: inherit;
}

/* --- Advertise offer panel ------------------------------------------------ */

.offer-panel {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 30px 32px;
}

.offer-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dot-top {
  width: 8px;
  height: 8px;
  transform: translateY(8px);
}

.offer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 24px;
  color: var(--headings);
}

.offer-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
}

/* --- Why ------------------------------------------------------------------ */

.why-points {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.why-point {
  flex: 1 1 0;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-lead {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 26px;
  color: var(--headings);
}

.why-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--side-pad);
}

.footer-inner {
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.footer-statement {
  margin: 0;
  max-width: 440px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  line-height: 43px;
  letter-spacing: -0.01em;
  color: var(--headings);
}

.footer-listening {
  display: block;
  color: var(--accent);
}

.footer-contact {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  text-align: right;
}

.footer-contact a {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 18px;
  color: var(--accent);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  text-decoration: underline;
}

.footer-domain {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 18px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 52px;
}

.footer-legal span {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--legal);
}

/* ===========================================================================
   Mobile - match the 390px artboard.
   Drop to the mobile type scale and ~24px side padding; stack the property
   card and the "Why" two-column points.
   --------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --side-pad: 24px;
  }

  .site-header {
    padding: 22px var(--side-pad);
  }

  .wordmark {
    font-size: 19px;
    line-height: 24px;
    letter-spacing: 0;
  }

  .contact-pill {
    font-size: 13px;
    line-height: 16px;
    padding: 9px 16px;
  }

  .section {
    padding: 36px var(--side-pad);
  }

  .properties,
  .advertise,
  .why {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .letter .eyebrow-row,
  .properties .eyebrow-row {
    padding-bottom: 0;
  }

  /* Letter spacing on mobile is driven by stacked margins */
  .salutation {
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 22px;
  }

  .hero-headline {
    margin-top: 24px;
    font-size: 36px;
    line-height: 41px;
    overflow-wrap: anywhere;
  }

  .letter-body {
    gap: 24px;
    padding-top: 24px;
  }

  .letter-body p {
    font-size: 18px;
    line-height: 28px;
    overflow-wrap: anywhere;
  }

  .pull-quote {
    padding: 0 0 0 18px;
    font-size: 22px;
    line-height: 30px;
  }

  .sign-off {
    gap: 2px;
    padding-top: 24px;
    font-size: 18px;
    line-height: 28px;
  }

  .postscript {
    margin-top: 24px;
    padding-top: 24px;
  }

  .ps-lead {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 25px;
  }

  .dotted-list {
    gap: 16px;
  }

  .dotted-item {
    gap: 12px;
    font-size: 15px;
    line-height: 22px;
    overflow-wrap: anywhere;
  }

  /* Property card stacks vertically on mobile */
  .property-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
  }

  .property-logo {
    width: 60px;
    height: 50px;
  }

  .property-descriptor {
    font-size: 15px;
    line-height: 22px;
    color: var(--body);
  }

  .property-meta {
    font-family: var(--font-mono);
    font-size: 12px;
  }

  .property-status .status-label {
    font-size: 12px;
  }

  .properties-note {
    font-size: 14px;
    line-height: 21px;
  }

  .section-heading {
    font-size: 26px;
    line-height: 32px;
    overflow-wrap: anywhere;
  }

  .section-intro {
    margin-top: 22px;
    font-size: 15px;
    line-height: 23px;
  }

  .offer-panel {
    margin-top: 22px;
    gap: 18px;
    padding: 24px;
  }

  .offer-point {
    gap: 14px;
  }

  .dot-top {
    transform: translateY(7px);
  }

  .offer-lead {
    font-size: 18px;
  }

  .offer-body {
    font-size: 14px;
    line-height: 21px;
  }

  .section-closing {
    margin-top: 22px;
    font-size: 18px;
    line-height: 26px;
  }

  /* "Why" points stack on mobile */
  .why-points {
    margin-top: 22px;
    flex-direction: column;
    gap: 22px;
  }

  .why-point {
    min-width: 0;
  }

  .why-lead {
    font-size: 18px;
    line-height: 24px;
  }

  .why-body {
    font-size: 15px;
    line-height: 23px;
  }

  /* Footer stacks on mobile */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-statement {
    max-width: none;
    font-size: 28px;
    line-height: 34px;
  }

  .footer-contact {
    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }

  .footer-contact a {
    font-size: 14px;
  }

  .footer-domain {
    font-size: 13px;
    line-height: 16px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 28px;
    text-align: center;
  }

  .footer-legal span {
    font-size: 11px;
    line-height: 14px;
  }
}
