/* ReeceLarkin.com, version 2 ("Stone")
   Limestone page, navy ink and one flannel red. Headings sit in a left rail with the
   content to their right, divided by hairlines. */

:root {
  color-scheme: light;
  --stone: #ece6d9;
  --stone-deep: #e1d9c8;
  --white: #fffdf9;
  --ink: #1c2230;
  --body: #353b48;
  --muted: #5c616e;
  --line: #cbc2b0;
  --field: #857c69;
  --red: #b3231d;
  --red-deep: #8d1a15;
  --display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --text: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
  --rail: 250px;
  --gap: 56px;
  --photo: 380px;
}

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

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

body {
  margin: 0;
  background: var(--stone);
  color: var(--body);
  font: 400 1.0625rem/1.6 var(--text);
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  left: 0;
}

.lede {
  color: var(--body);
  font-size: 1.25rem;
  line-height: 1.5;
}

.frame {
  overflow: hidden;
  border-radius: 10px;
}

.frame img {
  width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 650 1rem/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.btn--solid {
  background: var(--ink);
  color: #fff;
}

.btn--red {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

.top {
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 700 1.2rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--ink);
  font-weight: 550;
  font-size: 0.98rem;
  text-decoration: none;
}

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

.nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.nav .nav-contact {
  padding: 7px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.nav .nav-contact:hover,
.nav .nav-contact[aria-current] {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.menu-btn {
  display: none;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 650 0.95rem/1.2 var(--text);
  cursor: pointer;
}

/* ---------- Home hero and the red band the photo runs into ---------- */

.hero-in,
.proof-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--photo);
  gap: var(--gap);
}

.hero-in {
  padding-top: 48px;
}

.hero-text {
  align-self: center;
  padding-bottom: 48px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 3.75rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero .lede {
  max-width: 34ch;
  margin-top: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-photo {
  position: relative;
  z-index: 1;
  margin-bottom: -128px;
}

.hero-photo img {
  width: 100%;
  border-radius: 10px;
}

.proof {
  background: var(--red);
  color: #fff;
}

.proof ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
  padding: 34px 0;
}

.proof strong {
  display: block;
  font: 700 1.2rem/1.2 var(--display);
}

.proof span {
  display: block;
  margin-top: 3px;
  font-size: 0.98rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* ---------- Rows: heading rail on the left, content on the right ---------- */

.row-in {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.proof + .row .row-in,
.page-head + .row .row-in {
  border-top: 0;
}

.rail {
  align-self: start;
  position: sticky;
  top: 24px;
}

.rail p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.rail .rail-meta {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 600;
}

.rail-meta span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.rail .outlet {
  margin: 0;
  color: var(--ink);
  font: 700 1.25rem/1.2 var(--display);
}

.more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 650;
}

.row-body > p {
  max-width: 66ch;
}

.row-body > h2 + p {
  margin-top: 8px;
}

.prose {
  max-width: 66ch;
}

.prose p + p {
  margin-top: 1em;
}

/* Home: services */

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.services li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.services li:nth-child(-n + 2) {
  padding-top: 0;
  border-top: 0;
}

.services li:nth-last-child(-n + 2) {
  padding-bottom: 0;
}

.services p,
.ventures p,
.press-brief p,
.approach p,
.pair p {
  margin-top: 5px;
}

h3 a {
  text-decoration: none;
}

h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Home: work */

.ventures li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 150px;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.ventures li:first-child {
  padding-top: 0;
  border-top: 0;
}

.ventures li:last-child {
  padding-bottom: 0;
}

.ventures li > p {
  margin-top: 0;
}

.ventures .venture-tag {
  color: var(--muted);
  font-size: 0.98rem;
}

.venture-meta {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.venture-meta span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* Home: about */

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Home: press */

.press-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.press-brief .date {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Inner pages ---------- */

.page-head {
  padding: 40px 0 8px;
}

.page-head h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.page-head .lede {
  max-width: 62ch;
  margin-top: 14px;
}

.crumbs {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.crumbs a {
  color: var(--muted);
}

.crumbs span::before {
  content: "/";
  margin: 0 9px;
  color: var(--line);
}

.story-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
}

.includes {
  margin-top: 16px;
}

.includes li {
  position: relative;
  padding-left: 22px;
}

.includes li + li {
  margin-top: 6px;
}

.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  background: var(--red);
}

.pair,
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.95rem;
}

.facts dd {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.ledger div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.ledger div:first-child {
  padding-top: 0;
  border-top: 0;
}

.ledger div:last-child {
  padding-bottom: 0;
}

.ledger dt {
  color: var(--ink);
  font: 700 1.05rem/1.4 var(--display);
}

.timeline li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.timeline li:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline time {
  color: var(--red);
  font: 700 1.1rem/1.5 var(--display);
  font-variant-numeric: tabular-nums;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
}

.faq details:first-child summary {
  padding-top: 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--red);
  font: 700 1.5rem/1 var(--display);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover h3 {
  color: var(--red);
}

.faq details p {
  max-width: 66ch;
  padding-bottom: 18px;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--gap);
  padding: 36px 0 56px;
}

.contact--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}

.form {
  display: grid;
  gap: 18px;
  align-content: start;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}

.form small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.form label:has(small) {
  grid-template-columns: auto 1fr;
  align-items: baseline;
}

.form label:has(small) input {
  grid-column: 1 / -1;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.form textarea {
  resize: vertical;
}

.form .btn {
  justify-self: start;
}

.notice {
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  background: var(--stone-deep);
  color: var(--ink);
}

.form-status:empty {
  display: none;
}

.form-status[data-state="error"] {
  color: var(--red-deep);
  font-weight: 600;
}

.aside .frame {
  max-width: 260px;
}

.aside h2 {
  margin-top: 24px;
  font-size: 1.15rem;
}

.aside h2 + p {
  margin-top: 8px;
}

.aside .includes {
  margin-top: 10px;
}

.lone {
  padding: 8px 0 64px;
}

/* ---------- Call to action and footer ---------- */

.cta {
  background: var(--ink);
  color: #dcd6ca;
}

.cta-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 48px 0;
}

.cta-who {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cta-who img {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.cta h2 {
  color: #fff;
  font-size: 1.75rem;
}

.cta p {
  max-width: 58ch;
  margin-top: 8px;
}

.foot {
  background: var(--ink);
  color: #c9c4ba;
  font-size: 0.98rem;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.7fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

.foot h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.foot li + li {
  margin-top: 4px;
}

.foot a {
  color: inherit;
  text-decoration-color: transparent;
}

.foot a:hover {
  color: #fff;
  text-decoration-color: var(--red);
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 18px 0 22px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

.foot-bar a {
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

.cta :focus-visible,
.foot :focus-visible {
  outline-color: #fff;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 860px) {
  :root {
    --gap: 22px;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 0 20px;
  }

  .nav[data-open] {
    display: flex;
  }

  .hero-in,
  .proof-in,
  .row-in,
  .about-split,
  .story-split,
  .contact,
  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-in {
    padding-top: 36px;
  }

  .hero-text {
    padding-bottom: 14px;
  }

  .hero-photo {
    width: min(100%, 300px);
    margin-bottom: -84px;
  }

  .proof ul {
    padding-top: 112px;
  }

  .row-in {
    padding: 36px 0;
  }

  .rail {
    position: static;
  }

  .story-split .frame {
    max-width: 300px;
  }

  .ventures li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .press-brief,
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .foot-cols {
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .services,
  .pair,
  .approach,
  .proof ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .services li:nth-child(2) {
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .services li:nth-last-child(2) {
    padding-bottom: 18px;
  }

  .ledger div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .cta-who {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
