/* ==========================================================================
   Too Park Investments — design system
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */

:root {
  /* Color */
  --ink: #0f1c2e;
  --ink-2: #1c3049;
  --ink-3: #3d5773;
  --slate: #64748b;
  --paper: #fbfaf7;
  --paper-2: #f2efe8;
  --line: #e2ddd2;
  --white: #ffffff;
  --brass: #a8813c;
  --brass-2: #8d6c30;
  --brass-wash: #f6efe0;

  /* Type */
  --font-display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.81rem + 0.11vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.11rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.33vw, 1.39rem);
  --step-2: clamp(1.44rem, 1.33rem + 0.54vw, 1.74rem);
  --step-3: clamp(1.73rem, 1.55rem + 0.86vw, 2.18rem);
  --step-4: clamp(2.07rem, 1.8rem + 1.32vw, 2.72rem);
  --step-5: clamp(2.49rem, 2.08rem + 1.98vw, 3.4rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --measure: 66ch;
  --wrap: 76rem;
  --wrap-narrow: 48rem;
  --radius: 4px;
  --radius-lg: 10px;
}

/* --- Reset ------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p,
ul,
ol {
  margin: 0 0 var(--sp-5);
  max-width: var(--measure);
}

p {
  text-wrap: pretty;
}

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

a:hover {
  color: var(--ink);
}

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-7) 0;
}

/* --- Layout primitives -------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-9);
}

.section--tight {
  padding-block: var(--sp-8);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section--paper2 {
  background: var(--paper-2);
}

.section + .section--paper2,
.section--paper2 + .section {
  border-top: 1px solid var(--line);
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 40em) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56em) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
    align-items: start;
  }
}

/* --- Typographic helpers ------------------------------------------------ */

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin: 0 0 var(--sp-3);
}

.section--ink .eyebrow {
  color: var(--brass);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 58ch;
}

.section--ink .lede {
  color: #c3cede;
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--sp-7);
}

.section-head p {
  margin-bottom: 0;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease;
}

.btn--primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brass-2);
  border-color: var(--brass-2);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink-3);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.section--ink .btn--ghost,
.hero .btn--ghost {
  border-color: #4d6883;
  color: var(--white);
}

.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* --- Cards -------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-3);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.section--ink .card {
  background: var(--ink-2);
  border-color: #2c4562;
  color: #c3cede;
}

.card__num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--brass);
  display: block;
  margin-bottom: var(--sp-2);
}

/* --- Lists -------------------------------------------------------------- */

.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--sp-3);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brass);
}

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

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

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

.nav {
  display: none;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.header-cta {
  display: none;
}

@media (min-width: 62em) {
  .nav,
  .header-cta {
    display: block;
  }
}

/* Mobile nav */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.nav-mobile {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-4);
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile a {
  display: block;
  padding: var(--sp-3) 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.nav-mobile li:last-child a {
  border-bottom: 0;
}

@media (min-width: 62em) {
  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sp-10) var(--sp-9);
  background-image: radial-gradient(
    ellipse 80% 60% at 75% 0%,
    rgba(168, 129, 60, 0.22),
    transparent 70%
  );
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
}

.hero .lede {
  color: #c3cede;
  max-width: 52ch;
}

.hero--page {
  padding-block: var(--sp-8) var(--sp-8);
}

.hero--page h1 {
  max-width: 22ch;
  font-size: var(--step-4);
}

/* --- Stats -------------------------------------------------------------- */

.stats {
  display: grid;
  gap: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
}

@media (min-width: 44em) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-7);
  }
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--white);
  line-height: 1.1;
}

.stat__label {
  font-size: var(--step--1);
  color: #9fb0c4;
  margin: var(--sp-2) 0 0;
}

/* --- Contact / detail lists --------------------------------------------- */

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

.detail-list > li {
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.detail-list > li:first-child {
  padding-top: 0;
}

.detail-list dt,
.detail-list__label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--sp-1);
}

.detail-list__value {
  font-size: var(--step-1);
  font-family: var(--font-display);
  color: var(--ink);
}

.detail-list__value a {
  color: var(--ink);
  text-decoration: none;
}

.detail-list__value a:hover {
  color: var(--brass-2);
  text-decoration: underline;
}

/* --- Forms -------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--sp-5);
  max-width: 34rem;
}

.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brass);
  outline: 2px solid rgba(168, 129, 60, 0.25);
  outline-offset: 0;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field--hp {
  position: absolute;
  left: -9999px;
}

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

.site-footer {
  background: var(--ink);
  color: #9fb0c4;
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--step--1);
}

.site-footer a {
  color: #c3cede;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer h4 {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.footer-grid {
  display: grid;
  gap: var(--sp-7);
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--sp-8);
  }
}

.site-footer .logo {
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: var(--sp-3);
}

.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  color: #7b8ca1;
}

.footer-bottom p {
  margin: 0;
  max-width: none;
}

.disclosure {
  margin-top: var(--sp-5);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6d7f95;
  max-width: 70ch;
}

/* --- Skip link ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--sp-4);
  color: var(--white);
}

/* --- Utilities ---------------------------------------------------------- */

.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;
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-6 {
  margin-top: var(--sp-6);
}
