/* Erin Prus — editorial layout, Squarespace palette. */

:root {
  --cream: #e5e3dc;
  --white: #ffffff;
  --ink: #303636;
  --slate: #495a58;
  --accent: #d4967d;
  --muted: var(--slate);
  --line: color-mix(in srgb, var(--ink) 16%, var(--cream));
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  letter-spacing: -0.045em;
  font-size: clamp(52px, 5.6vw, 78px);
  line-height: 1.02;
}

h2 {
  letter-spacing: -0.04em;
  font-size: clamp(38px, 4.1vw, 57px);
  line-height: 1.12;
}

h2 em,
h1 em {
  font-weight: 400;
  font-style: italic;
}

p {
  line-height: 1.7;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.section-width {
  width: min(1216px, calc(100% - 112px));
  margin-inline: auto;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 16px;
  transform: translateY(-150%);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.button-dark {
  background: var(--ink);
  color: var(--cream);
}

.button-dark:hover {
  background: var(--slate);
  transform: translateY(-2px);
  box-shadow: 0 5px #30363618;
}

.button-dark:active {
  transform: translateY(0);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
  transition: gap 0.2s;
}

.text-link:hover {
  gap: 20px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1328px, calc(100% - 96px));
  min-height: 100px;
  margin-inline: auto;
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.brand span {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navigation > a:not(.button) {
  position: relative;
  padding-block: 12px;
  font-size: 14px;
  font-weight: 500;
}

.navigation > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.navigation > a:hover::after,
.navigation > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 8px;
  min-height: 44px;
  padding: 12px 18px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 39px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--accent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  width: min(1216px, calc(100% - 112px));
  margin-inline: auto;
  padding: 64px 0 78px;
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-description {
  max-width: 460px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.75;
}

.hero-description + .hero-description {
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.hero-note strong {
  color: var(--ink);
  font-weight: 550;
}

.spark {
  display: inline-flex;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: currentColor;
}

.spark svg {
  width: 100%;
  height: 100%;
}

.mini-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.mini-mark .spark {
  width: 16px;
  height: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 12px 8px 28px;
}

.hero-photo {
  width: min(100%, 460px);
  aspect-ratio: 0.92;
  overflow: hidden;
  border: 5px solid var(--cream);
  border-radius: 47% 47% 10px 10px;
  transform: rotate(3deg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.since-seal {
  position: absolute;
  bottom: 36px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  outline: 1px dashed var(--slate);
  outline-offset: -8px;
  background: var(--cream);
  box-shadow: 0 3px 12px #30363614;
  transform: rotate(-12deg);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
  line-height: 1.4;
}

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 12px;
  background: radial-gradient(12px at 50% 0, transparent 98%, var(--cream)) 0 0 / 24px 12px repeat-x;
}

/* Promise bar */

.promise-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  width: min(1216px, calc(100% - 112px));
  margin-inline: auto;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
}

.promise-bar > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 28px;
  padding-inline: 12px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

.promise-bar > div:first-child {
  justify-content: flex-start;
  padding-left: 0;
}

.promise-bar > div:last-child {
  justify-content: flex-end;
  padding-right: 0;
  border: 0;
}

.promise-bar svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

/* Credo */

.credo {
  padding: 88px 0 20px;
}

.credo h2 {
  max-width: 16ch;
}

/* Work */

.work-section {
  padding: 72px 0 88px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-intro {
  max-width: 380px;
  padding-bottom: 6px;
}

.section-intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.work-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  border-radius: 7px;
  background: var(--cream);
}

.work-card:nth-child(3n + 1) .work-image {
  border-radius: 42% 42% 7px 7px;
}

.work-card:nth-child(3n) .work-image {
  border-radius: 7px 7px 42%;
}

.work-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-image:hover img {
  transform: scale(1.05);
}

.round-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform 0.2s;
}

.round-arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(-35deg);
}

.work-image:hover .round-arrow {
  transform: rotate(35deg);
}

.card-eyebrow {
  margin-top: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
}

.work-card h3 {
  margin-top: 8px;
  letter-spacing: -0.03em;
  font-size: 26px;
  line-height: 1.25;
}

.work-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.work-card > p:last-child {
  max-width: 36ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Deep dives */

.deep-section {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0;
}

.deep-section h3 {
  color: var(--accent);
}

.deep-section .section-width {
  width: min(1216px, calc(100% - 112px));
}

.deep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 28px;
}

.deep-card:nth-child(2) {
  padding-top: 36px;
}

.deep-card:nth-child(3) {
  padding-top: 10px;
}

.deep-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.98;
  overflow: hidden;
  border-radius: 7px;
  background: var(--cream);
}

.deep-card:nth-child(1) .deep-image {
  border-radius: 45% 45% 7px 7px;
}

.deep-card:nth-child(3) .deep-image {
  border-radius: 7px 7px 45%;
}

.deep-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.deep-card:hover img {
  transform: scale(1.05);
}

.deep-card h3 {
  margin-top: 18px;
  letter-spacing: -0.03em;
  font-size: 28px;
  line-height: 1.25;
}

.deep-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* About */

.story-section {
  background: var(--slate);
  color: var(--cream);
  padding: 84px 0;
}

.story-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 88px;
  width: min(1120px, calc(100% - 112px));
  margin-inline: auto;
}

.story-visual {
  position: relative;
  max-width: 460px;
}

.story-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: 42% 62%;
  border-radius: 8px 8px 46%;
  transform: rotate(-3deg);
}

.story-tag {
  position: absolute;
  bottom: 36px;
  left: -18px;
  max-width: 240px;
  padding: 16px 20px;
  border-radius: 4px;
  background: var(--cream);
  box-shadow: 0 6px 25px #3036361a;
  transform: rotate(3deg);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
}

.story-mark {
  position: absolute;
  z-index: 2;
  top: -14px;
  right: 10px;
  width: 58px;
  height: 58px;
  color: var(--accent);
  pointer-events: none;
}

.story-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.story-copy .eyebrow {
  margin-bottom: 16px;
}

.story-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 5vw, 68px);
}

.story-copy p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.75;
}

.story-copy .text-link {
  margin-top: 8px;
}

/* Contact */

.enquiry-section {
  background: var(--accent);
  padding: 80px 0 96px;
}

.enquiry-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 80px;
  width: min(1120px, calc(100% - 112px));
  margin-inline: auto;
}

.enquiry-copy h1 {
  font-size: clamp(46px, 4.6vw, 64px);
}

.enquiry-copy .eyebrow {
  margin-bottom: 18px;
}

.enquiry-copy > p:not(.eyebrow) {
  max-width: 36ch;
  margin-top: 22px;
  color: var(--ink);
  font-size: 16px;
}

.contact-email {
  margin-top: 18px;
  font-size: 16px;
}

.contact-email a {
  border-bottom: 1px solid currentColor;
}

.enquiry-photo {
  width: min(100%, 320px);
  margin-top: 36px;
}

.enquiry-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 46% 46% 8px 8px;
  transform: rotate(-2deg);
}

.enquiry-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 550;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid var(--cream);
  border-radius: 4px;
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.enquiry-form textarea {
  min-height: 140px;
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px #30363622;
}

.form-submit {
  margin-top: 4px;
}

.form-success {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--cream);
  border-radius: 5px;
  background: var(--white);
  font-family: var(--serif);
  font-size: 22px;
}

/* Footer */

.footer {
  padding: 48px 0 22px;
  background: var(--ink);
  color: var(--cream);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}

.footer .brand span,
.footer .brand small {
  color: var(--cream);
}

.footer-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.footer-quote span {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.footer-top-link {
  border-bottom: 1px solid var(--accent);
  padding-block: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--slate);
  color: var(--cream);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a:hover,
.footer-top-link:hover {
  color: var(--cream);
}

.social {
  display: flex;
  gap: 14px;
}

.social a {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 1100px) {
  .section-width,
  .hero-inner,
  .promise-bar,
  .story-inner,
  .enquiry-inner,
  .deep-section .section-width {
    width: calc(100% - 72px);
  }

  .header-inner {
    width: calc(100% - 56px);
  }

  .story-inner,
  .enquiry-inner {
    gap: 48px;
  }

  .hero-inner {
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 12px 20px #3036361a;
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation > a:not(.button) {
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-cta {
    margin: 16px 0 0;
    justify-content: space-between;
  }

  .hero-inner,
  .story-inner,
  .enquiry-inner,
  .deep-grid,
  .promise-bar {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-block: 40px 64px;
  }

  .hero-visual {
    min-height: 0;
    max-width: 420px;
    margin-inline: auto;
  }

  .since-seal {
    left: 8px;
    width: 96px;
    height: 96px;
  }

  .promise-bar {
    row-gap: 18px;
    padding-block: 26px;
  }

  .promise-bar > div,
  .promise-bar > div:first-child,
  .promise-bar > div:last-child {
    justify-content: flex-start;
    padding: 0;
    border: 0;
  }

  .section-heading,
  .footer-top,
  .footer-bottom {
    display: block;
  }

  .section-intro {
    max-width: none;
    margin-top: 18px;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .deep-card:nth-child(2),
  .deep-card:nth-child(3) {
    padding-top: 0;
  }

  .story-visual,
  .enquiry-photo {
    margin-inline: auto;
  }

  .story-visual img {
    height: 460px;
  }

  .footer-quote,
  .footer-top-link,
  .footer-links {
    margin-top: 22px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 560px) {
  .section-width,
  .hero-inner,
  .promise-bar,
  .story-inner,
  .enquiry-inner,
  .deep-section .section-width {
    width: calc(100% - 40px);
  }

  .header-inner {
    width: calc(100% - 36px);
    min-height: 82px;
  }

  h1 {
    font-size: clamp(44px, 12vw, 60px);
  }

  .work-grid,
  .deep-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 16px;
  }

  .story-tag {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
