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

:root {
  --color-bg: #f3f2f2;
  --color-ink: #201e1d;
  --color-gold: #9a7420;
  --color-purple: #4a2a7d;
  --color-purple-hover: #6a44a8;
  --color-selection: rgba(74, 42, 125, 0.16);

  --color-neutral-400: #bab6b6;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;

  --font-heading: "Source Serif 4", ui-serif, Georgia, serif;
  --font-body: "Source Serif 4", ui-serif, Georgia, serif;
  --radius-sm: 2px;

  --gutter: 72px;
}

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

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

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

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

[hidden] {
  display: none !important;
}

/* ---- Links & focus ----------------------------------------------------- */

a {
  color: var(--color-purple);
  text-decoration: none;
  transition: color 140ms ease;
}

a:hover {
  color: var(--color-purple-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

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

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--gutter) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 52px;
  height: 52px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--color-gold);
}

.brand__name em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 18px;
}

.brand__descriptor {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink);
}

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

.site-nav a,
.site-nav__current {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav__current {
  color: var(--color-gold);
}

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

.site-footer {
  padding: 120px var(--gutter) 64px;
  font-size: 13px;
  color: var(--color-neutral-700);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.footer-wordmark {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--color-gold);
}

.footer-wordmark em {
  font-style: italic;
  letter-spacing: 0.01em;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  align-items: baseline;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 36px;
}

/* ---- Kicker / section intro -------------------------------------------- */

.kicker {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}

.accent {
  color: var(--color-gold);
}

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

.btn-submit {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-purple);
  border: 0;
  padding: 15px 34px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.btn-submit:hover {
  background: var(--color-purple-hover);
}

.btn-text {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-purple);
  background: none;
  border: 0;
  border-bottom: 1.5px solid var(--color-gold);
  padding: 0 0 5px;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--color-purple-hover);
}

/* ---- Home: hero ---------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 104px var(--gutter) 0;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__headline h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.02;
  text-wrap: balance;
}

.hero__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}

.hero__mark {
  flex: 0 1 264px;
  display: flex;
  justify-content: flex-end;
  order: 2;
}

.hero__mark svg {
  width: 264px;
  height: 264px;
}

.hero__lede {
  flex: 1 1 340px;
  min-width: 300px;
  order: 1;
}

.hero__lede p {
  font-size: 20px;
  line-height: 1.6;
  max-width: 46ch;
  text-wrap: pretty;
  color: var(--color-neutral-800);
}

/* ---- Section intro (Services / Process shared shape) --------------------- */

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 62ch;
  margin-bottom: 80px;
}

.section-intro h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
}

/* ---- Home: services -------------------------------------------------------- */

.services {
  padding: 136px var(--gutter) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 72px 88px;
  max-width: 1180px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service__num {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--color-gold);
}

.service h3 {
  font-size: 27px;
  line-height: 1.15;
}

.service p {
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 40ch;
  text-wrap: pretty;
  color: var(--color-neutral-800);
}

/* ---- Home: process ---------------------------------------------------------- */

.process {
  padding: 152px var(--gutter) 0;
}

.process__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  align-items: flex-start;
}

.process__intro {
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.process__intro h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
}

.process__intro p {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 4px;
  max-width: 34ch;
  text-wrap: pretty;
  color: var(--color-neutral-700);
}

.process__list {
  flex: 1 1 520px;
  min-width: 420px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.process__item {
  display: flex;
  gap: 28px;
  align-items: baseline;
}

.process__num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-gold);
  flex: none;
  width: 58px;
}

.process__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process__body h3 {
  font-size: 23px;
  line-height: 1.2;
}

.process__body p {
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 46ch;
  text-wrap: pretty;
  color: var(--color-neutral-800);
}

/* ---- Examples: intro ----------------------------------------------------- */

.examples-intro {
  padding: 104px var(--gutter) 0;
}

.examples-intro__inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 58ch;
}

.examples-intro h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  text-wrap: balance;
}

.examples-intro p {
  font-size: 19px;
  line-height: 1.65;
  text-wrap: pretty;
  color: var(--color-neutral-800);
}

/* ---- Examples: project list ----------------------------------------------- */

.project-list {
  padding: 112px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.project {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 72px;
  align-items: center;
}

.project:nth-child(even) {
  flex-wrap: wrap-reverse;
}

.project__media {
  flex: 1 1 560px;
  min-width: 380px;
  order: 1;
}

.project:nth-child(even) .project__media {
  order: 2;
}

.project__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-neutral-400);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__thumb-caption {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}

.project__text {
  flex: 0 1 340px;
  min-width: 300px;
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project:nth-child(even) .project__text {
  order: 1;
}

.project__meta {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--color-gold);
}

.project__name {
  font-size: 30px;
  line-height: 1.12;
}

.project__blurb {
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 38ch;
  text-wrap: pretty;
  color: var(--color-neutral-800);
}

.project__link {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---- Examples: closing CTA -------------------------------------------------- */

.examples-cta {
  padding: 144px var(--gutter) 0;
}

.examples-cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1180px;
}

.examples-cta h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  max-width: 26ch;
  text-wrap: balance;
}

.cta-link {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 7px;
}

.cta-link:hover {
  text-decoration: none;
}

/* ---- Contact ----------------------------------------------------------------- */

.contact {
  padding: 104px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 96px;
  align-items: flex-start;
}

.contact__main {
  flex: 1 1 520px;
  min-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 46ch;
}

.contact__intro h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  text-wrap: balance;
}

.contact__intro p {
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
  color: var(--color-neutral-800);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 620px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-row .form-field {
  flex: 1 1 240px;
}

.form-field label,
.form-field > span {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}

.field-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--color-neutral-400);
  padding: 10px 2px;
  outline: none;
}

textarea.field-input {
  resize: vertical;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding-top: 4px;
}

.form-note {
  font-size: 13.5px;
  color: var(--color-neutral-700);
}

.form-error {
  font-size: 14.5px;
  color: var(--color-ink);
}

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

.thank-you {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 42ch;
}

.thank-you__kicker {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--color-gold);
}

.thank-you h2 {
  font-size: 30px;
  line-height: 1.15;
}

.thank-you p {
  font-size: 16.5px;
  line-height: 1.7;
  text-wrap: pretty;
  color: var(--color-neutral-800);
}

.thank-you .btn-text {
  align-self: flex-start;
  margin-top: 10px;
}

.contact__aside {
  flex: 0 1 300px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-top: 12px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-block--list {
  gap: 12px;
}

.info-block__label {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}

.info-block__email {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.4;
}

.info-block__value {
  font-size: 16.5px;
  line-height: 1.6;
}

.info-list {
  margin: 0;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-neutral-800);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- Small screens ------------------------------------------------------------ */

@media (max-width: 640px) {
  .hero__lede,
  .process__list,
  .contact__main,
  .contact__aside,
  .project__media,
  .project__text {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 24px;
  }
}
