/* FairThoughts - site styles */

:root {
  --ink: #383845;
  --ink-strong: #111118;
  --muted: #6b6b78;
  --line: #ececf0;
  --field: #b9b9c4;
  --dot: #e0532f;
  --bg: #ffffff;
  --max: 1360px;
  --gutter: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ink-strong);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 10;
  background: var(--bg);
  padding: 8px 14px;
  border: 1px solid var(--ink);
}

.skip-link:focus {
  left: 16px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
}

.logo {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 10px 0;
}

.logo span {
  color: var(--dot);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 48px;
  font-size: 15px;
}

.nav a {
  padding: 12px 0;
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

/* Home hero */

.hero {
  min-height: max(560px, calc(100svh - 104px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 48px;
}

.hero-center {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 0 80px;
}

.display {
  margin: 0;
  text-align: center;
  font-size: clamp(40px, 5.8vw, 80px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.blurb {
  margin: 0;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  line-height: 1.35;
}

.contact-mini strong {
  font-weight: 600;
}

/* 44px tap area with no change to the layout */
.contact-mini a {
  padding-block: 11px;
  margin-block: -11px;
}

/* Sections */

.section {
  border-top: 1px solid var(--line);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-block: 96px;
}

.grid-3-heading > :first-child {
  grid-column: 1 / -1;
}

.item p a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.lead {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.link-underline {
  align-self: flex-start;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--ink);
}

/* Contact page */

.page-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding-block: 136px 96px;
}

.page-intro p {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* Inline link: the padding keeps the tap area, so the underline sits on the text */
.page-intro .link-underline {
  border-bottom: none;
  text-decoration: underline 1.5px var(--ink);
  text-underline-offset: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px;
  padding-block: 88px 112px;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail h2,
.field label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.detail p,
.detail address {
  margin: 0;
  font-style: normal;
  font-size: 18px;
  line-height: 1.6;
}

.detail .email {
  align-self: flex-start;
  font-size: 24px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1.5px solid var(--ink);
  overflow-wrap: anywhere;
}

.detail p a {
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--field);
  border-radius: 0;
  padding: 10px 0;
  width: 100%;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
}

.button {
  align-self: flex-start;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
}

.button:enabled:hover {
  background: var(--ink-strong);
}

.button:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

/* Simple text pages (privacy, 404) */

.prose {
  max-width: 720px;
  padding-block: 112px 120px;
}

.prose h1 {
  margin: 0 0 32px;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.prose p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 28px;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
}

.footer-nav a {
  padding: 12px 0;
}

/* Tablets */

@media (max-width: 1023px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 > :first-child {
    grid-column: 1 / -1;
  }
}

/* Phones */

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    gap: 0 24px;
    padding-top: 20px;
  }

  .nav {
    gap: 0 20px;
  }

  .hero-center {
    padding: 72px 0 56px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 64px;
  }

  .page-intro {
    padding-block: 88px 64px;
  }

  .contact-grid {
    gap: 56px;
    padding-block: 64px 80px;
  }

  .footer-nav {
    gap: 0 24px;
  }
}
