/*
  FishBidness — chart paper & ledger stamp system.
  Ink and olive pulled directly from the logo's own wordmark and fin
  color (sampled, not invented). Chart-paper background and ledger/tag
  structure stay independent of that — built to read on a phone at a
  dock in bright sun, not to look like a SaaS landing page.
*/

:root {
  --ink: #1c1b19;
  --chart-paper: #f1e9d6;
  --paper-white: #fbf8f1;
  --charcoal: #2b2b28;
  --charcoal-soft: #504c42;
  --olive: #7b796d;       /* sampled from the logo's fin/tail */
  --olive-text: #555035;  /* deepened for AA contrast as text/links */
  --olive-light: #a8a38c; /* lightened for use on the dark header/footer */
  --oxide: #7a2e2b;
  --rule: rgba(28, 27, 25, 0.14);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --measure: 38rem;
  --wrap: 64rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--chart-paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-color: var(--olive);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--olive-text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--olive-text);
  outline-offset: 3px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--paper-white);
  border-bottom: 3px solid var(--olive);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__inner--centered {
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  height: 4.5rem;
  width: auto;
  display: block;
}

.site-header nav a {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-header nav a:hover {
  color: var(--olive-text);
  border-bottom-color: var(--olive-text);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero__chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-text);
  border: 1px solid var(--olive);
  border-radius: 2px;
  padding: 0.3em 0.6em;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(2.25rem, 6vw + 1rem, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  max-width: 18ch;
  margin: 0 0 1.25rem;
}

.hero__lede {
  max-width: var(--measure);
  font-size: 1.125rem;
  color: var(--charcoal-soft);
  margin: 0;
}

.hero__lede + .hero__lede {
  margin-top: 1rem;
}

/* ---------- shared page shell ---------- */

main {
  display: block;
}

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section__heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.6rem;
  margin: 0 0 0.25rem;
}

.page-heading {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0.5rem;
}

.page-heading h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  margin: 0;
}

/* ---------- ledger / article list ---------- */

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger-row {
  display: block;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.ledger-row:first-child {
  padding-top: 1.6rem;
}

.ledger-row__top {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-text);
  border: 1px solid var(--olive);
  border-radius: 2px;
  padding: 0.2em 0.5em;
  white-space: nowrap;
}

.ledger-row__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--charcoal-soft);
  letter-spacing: 0.03em;
}

.ledger-row__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw + 0.8rem, 1.5rem);
  line-height: 1.15;
  text-decoration: none;
  letter-spacing: 0.005em;
}

.ledger-row:hover .ledger-row__title {
  color: var(--olive-text);
}

.ledger-row__desc {
  display: block;
  max-width: var(--measure);
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  margin-top: 0.35rem;
}

/* ---------- article page ---------- */

.article {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.article h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
}

.article p,
.article ul,
.article ol {
  font-size: 1.0625rem;
  color: var(--charcoal);
}

.article h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--ink);
  font-size: 1.4rem;
  margin-top: 2.25rem;
}

.article blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--olive);
  color: var(--charcoal-soft);
  font-style: italic;
}

.article a {
  font-weight: 500;
}

/* ---------- log slip (filled-out card, echoes the ledger stamp) ---------- */

.log-slip {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.15rem 1.5rem 1.35rem;
  background: var(--paper-white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--olive);
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 1.15rem) 0, 100% 1.15rem, 100% 100%, 0 100%);
}

.log-slip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1.15rem;
  height: 1.15rem;
  background: linear-gradient(
    135deg,
    transparent 50%,
    var(--chart-paper) 50%
  );
}

.log-slip__title {
  margin: 0 0 0.95rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-text);
}

.log-slip__fields {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  row-gap: 0.8rem;
  column-gap: 1.1rem;
  margin: 0;
}

.log-slip__fields dt {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.log-slip__fields dd {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 3px solid var(--olive);
}

.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subscribe {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(251, 248, 241, 0.16);
}

.subscribe__label {
  margin: 0 0 0.6rem;
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.subscribe__form {
  display: flex;
  gap: 0.6rem;
  max-width: 26rem;
  flex-wrap: wrap;
}

.subscribe__input {
  flex: 1 1 14rem;
  padding: 0.55em 0.75em;
  border: 1px solid var(--olive);
  border-radius: 2px;
  background: var(--paper-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.subscribe__input::placeholder {
  color: var(--charcoal-soft);
}

.subscribe__button {
  padding: 0.55em 1.1em;
  border: 1px solid var(--olive);
  border-radius: 2px;
  background: var(--olive);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.subscribe__button:hover {
  background: var(--olive-light);
  border-color: var(--olive-light);
}

.site-footer__tagline {
  margin: 0;
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .ledger-row {
    animation: rise 0.4s ease-out both;
  }

  .ledger-row:nth-child(2) { animation-delay: 0.04s; }
  .ledger-row:nth-child(3) { animation-delay: 0.08s; }
  .ledger-row:nth-child(4) { animation-delay: 0.12s; }
  .ledger-row:nth-child(n + 5) { animation-delay: 0.16s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---------- survey ---------- */

.survey {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.survey__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.survey__lede {
  font-size: 1.0625rem;
  color: var(--charcoal-soft);
  margin: 0 0 2rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.q {
  margin: 0 0 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.q fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.q legend {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  padding: 0;
  margin: 0 0 0.9rem;
}

.q__hint {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: none;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--charcoal-soft);
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.35rem 0;
  font-size: 1rem;
  color: var(--charcoal);
  cursor: pointer;
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  accent-color: var(--olive-text);
}

.other-wrap {
  max-width: 26rem;
  margin-top: 0.4rem;
  padding-left: 2rem;
}

.other-input {
  display: block;
  width: 100%;
  padding: 0.6em 0.75em;
  border: 1px solid var(--olive);
  border-radius: 2px;
  background: var(--paper-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.other-input::placeholder {
  color: var(--charcoal-soft);
}

.q10-fields {
  margin-top: 0.75rem;
  max-width: 26rem;
}

.field-label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.field-label:first-child {
  margin-top: 0;
}

.survey__error {
  margin: 0 0 1.5rem;
  padding: 0.85em 1em;
  border: 1px solid var(--oxide);
  border-radius: 2px;
  background: rgba(122, 46, 43, 0.08);
  color: var(--oxide);
  font-size: 0.95rem;
}

.survey__submit {
  display: inline-block;
  min-height: 44px;
  padding: 0.85em 1.75em;
  border: 1px solid var(--olive);
  border-radius: 2px;
  background: var(--olive);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  cursor: pointer;
}

.survey__submit:hover {
  background: var(--olive-light);
  border-color: var(--olive-light);
}

.survey__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.survey__thanks p {
  font-size: 1.0625rem;
  color: var(--charcoal);
}

/* ---------- responsive ---------- */

@media (max-width: 30rem) {
  .site-header__inner {
    padding: 0.5rem 1rem;
  }

  .brand img {
    height: 3.5rem;
  }

  .hero__inner {
    padding: 2.5rem 1rem 2rem;
  }

  .section,
  .page-heading,
  .article,
  .survey,
  .site-footer__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .other-wrap {
    padding-left: 1.25rem;
  }

  .survey__submit {
    display: block;
    width: 100%;
    text-align: center;
  }

  .log-slip {
    padding: 1rem 1.15rem 1.2rem;
  }

  .log-slip__fields {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }

  .log-slip__fields dt {
    grid-column: 1;
    margin-top: 0.55rem;
  }

  .log-slip__fields dd {
    grid-column: 1;
  }
}
