/* ReeceLarkin.com, version 4 ("Lamplight")
   The dark one: warm near-black, cream text, one amber accent, serif headings, and a
   lamp-lit photo running full width behind the opening. Section headings are centred. */

:root {
  color-scheme: dark;
  --night: #171311;
  --coal: #100d0b;
  --raise: #201a17;
  --tile: #272019;
  --line: #3d342d;
  --field: #7f7163;
  --cream: #f3ebdd;
  --body: #d4cabb;
  --muted: #a39887;
  --amber: #f2a93b;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

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

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

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.25rem;
}

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

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

a {
  color: var(--cream);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

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

:focus-visible {
  outline: 3px solid var(--amber);
  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(--amber);
  color: var(--coal);
}

.skip:focus {
  left: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.97rem;
}

.tag {
  color: var(--amber);
  font-size: 0.97rem;
  font-weight: 600;
}

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

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

.frame img {
  width: 100%;
}

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

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

.btn:hover {
  background: var(--amber);
  color: var(--coal);
}

.btn--solid {
  background: var(--amber);
  color: var(--coal);
}

.btn--solid:hover {
  border-color: var(--cream);
  background: var(--cream);
}

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

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

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

.top {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--night);
}

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

.brand {
  color: var(--cream);
  font: 400 1.45rem/1 var(--serif);
  text-decoration: none;
}

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

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

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

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

.nav .nav-contact {
  padding: 7px 15px;
  border: 1.5px solid var(--amber);
  border-radius: 6px;
  color: var(--amber);
}

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

.menu-btn {
  display: none;
  padding: 8px 15px;
  border: 1.5px solid var(--amber);
  border-radius: 6px;
  background: transparent;
  color: var(--amber);
  font: 650 0.95rem/1.2 var(--sans);
  cursor: pointer;
}

/* ---------- Home hero: the photo runs full width behind the heading ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 62vh, 600px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg picture,
.hero-bg img {
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  object-position: 62% 50%;
}

/* Darkens the left of the photo so the words read, and fades the bottom into the page. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--night) 0%, rgb(23 19 17 / 0) 26%),
    linear-gradient(90deg, rgb(23 19 17 / 0.97) 0%, rgb(23 19 17 / 0.9) 30%, rgb(23 19 17 / 0.35) 55%, rgb(23 19 17 / 0) 72%);
}

.hero-in {
  padding: 56px 0;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  line-height: 1.04;
}

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

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

.proof {
  border-block: 1px solid var(--line);
}

.proof ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof li {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.proof li:first-child {
  padding-left: 0;
  border-left: 0;
}

.proof strong {
  display: block;
  color: var(--cream);
  font: 400 1.2rem/1.2 var(--serif);
}

.proof span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

/* ---------- Sections ---------- */

.band {
  padding: 64px 0;
}

.band--tight {
  padding: 8px 0 64px;
}

.band--raised {
  background: var(--raise);
}

.head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.head p {
  margin-top: 8px;
  color: var(--muted);
}

.more {
  margin-top: 36px;
  text-align: center;
}

/* Plain text grids */

.grid {
  display: grid;
  gap: 30px 40px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid li {
  padding-top: 16px;
  border-top: 2px solid var(--line);
}

.grid p {
  margin-top: 6px;
}

.grid .meta {
  margin-top: 2px;
}

.grid--ruled {
  gap: 0;
}

.grid--ruled li {
  padding: 0 28px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.grid--ruled li:first-child {
  padding-left: 0;
  border-left: 0;
}

h3 a {
  text-decoration: none;
}

h3 a:hover {
  text-decoration: underline;
}

/* Tiles */

.tiles {
  display: grid;
  gap: 18px;
}

.tiles--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tiles--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tile);
}

.band:not(.band--raised) .tile {
  background: var(--raise);
}

.tile h2 {
  font-size: 1.55rem;
}

.tile h3 {
  margin-top: 4px;
  font-size: 1.6rem;
}

.tile h2 + p,
.tile .meta + p {
  margin-top: 10px;
}

.ticks {
  margin-top: 14px;
}

.ticks li {
  position: relative;
  padding-left: 24px;
}

.ticks li + li {
  margin-top: 5px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 12px;
  height: 2px;
  background: var(--amber);
}

/* Photo on one half, words on the other, edge to edge */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--raise);
}

.duo-photo picture,
.duo-photo img {
  width: 100%;
  height: 100%;
}

.duo-photo img {
  min-height: 400px;
  max-height: 520px;
  object-fit: cover;
  object-position: 50% 5%;
}

.duo-text {
  align-self: center;
  max-width: calc(var(--wrap) / 2);
  padding: 48px var(--gutter) 48px 56px;
}

.duo-text p {
  margin-top: 14px;
}

.duo-text .btn {
  margin-top: 26px;
}

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

.page-head {
  padding: 56px 0 44px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
}

.page-head .lede {
  max-width: 58ch;
  margin: 16px auto 0;
  color: var(--body);
}

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

.prose {
  max-width: 64ch;
}

.prose h2 {
  margin-bottom: 14px;
}

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

.timeline {
  columns: 2;
  column-gap: 52px;
}

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

.timeline time {
  color: var(--amber);
  font: 400 1.15rem/1.5 var(--serif);
}

.faq {
  max-width: 780px;
  margin-inline: auto;
}

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

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

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

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--amber);
  font: 400 1.6rem/1 var(--sans);
}

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

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

.faq details p {
  max-width: 64ch;
  padding-bottom: 20px;
}

/* Work and press: one wide tile each */

.ventures,
.press {
  display: grid;
  gap: 18px;
}

.venture {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  padding: 32px 34px;
}

.venture h2 {
  margin-top: 4px;
  font-size: 1.9rem;
}

.venture .meta {
  margin-top: 10px;
}

.venture .outlet {
  color: var(--cream);
  font: 400 1.35rem/1.2 var(--serif);
}

.press .venture h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.press .venture .meta {
  margin-top: 4px;
}

.press .more {
  margin-top: 14px;
  text-align: left;
}

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

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

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

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

.ledger div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.ledger dt {
  color: var(--cream);
  font: 400 1.2rem/1.3 var(--serif);
}

.ledger dd {
  margin-top: 3px;
}

/* Contact */

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

.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(--cream);
  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: 6px;
  background: var(--raise);
  color: var(--cream);
  font: inherit;
  font-weight: 400;
}

.form input::placeholder {
  color: var(--muted);
}

.form textarea {
  resize: vertical;
}

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

.notice {
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: var(--raise);
  color: var(--cream);
}

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

.form-status[data-state="error"] {
  color: #ff9d8a;
  font-weight: 600;
}

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

.aside h2 {
  margin-top: 26px;
  font-size: 1.3rem;
}

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

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

.lone {
  text-align: center;
}

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

.cta {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 4.2vw, 2.7rem);
}

.cta p {
  max-width: 52ch;
  margin: 14px auto 28px;
}

.foot {
  background: var(--coal);
  color: var(--muted);
  font-size: 0.98rem;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.7fr;
  gap: 40px;
  padding: 44px 0 36px;
}

.foot h2 {
  margin-bottom: 10px;
  font: 650 1rem/1.3 var(--sans);
}

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

.foot a {
  color: var(--body);
  text-decoration-color: transparent;
}

.foot a:hover {
  color: var(--cream);
  text-decoration-color: var(--amber);
}

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

.foot-bar a {
  text-decoration-color: var(--line);
}

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

@media (max-width: 860px) {
  .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;
  }

  /* The photo goes on top and the words underneath, so nothing covers the face. */
  .hero {
    display: block;
    min-height: 0;
  }

  .hero-bg {
    position: relative;
    aspect-ratio: 5 / 4;
  }

  .hero-bg img {
    object-position: 92% 40%;
  }

  .hero-bg::after {
    background: linear-gradient(0deg, var(--night) 0%, rgb(23 19 17 / 0) 40%);
  }

  .hero-in {
    padding: 4px 0 40px;
  }

  .proof ul,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof li {
    padding: 18px 0 18px 20px;
  }

  .proof li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .proof li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .band {
    padding: 48px 0;
  }

  .band--tight {
    padding: 0 0 48px;
  }

  .grid--3,
  .tiles--3,
  .tiles--2,
  .duo,
  .story,
  .venture,
  .contact,
  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--ruled {
    gap: 24px;
  }

  .grid--ruled li {
    padding: 16px 0 0;
    border-top: 2px solid var(--line);
    border-left: 0;
  }

  .duo-photo img {
    min-height: 0;
    max-height: 360px;
  }

  .duo-text {
    max-width: none;
    padding: 36px var(--gutter) 44px;
  }

  .story {
    gap: 28px;
  }

  .story .frame {
    max-width: 340px;
  }

  .venture {
    gap: 18px;
    padding: 26px 24px;
  }

  .timeline {
    columns: 1;
  }

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

  .contact {
    gap: 36px;
  }

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

  .cta {
    padding: 52px 0;
  }

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

@media (max-width: 560px) {
  .grid--2,
  .grid--4,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    gap: 12px;
  }
}

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