/* Root variables */
:root {
  --ink: #171717;
  --muted: #66625f;
  --paper: #fdfcfb;
  --soft: #f3f0ed;
  --line: #ded9d3;
  --crimson: #b11f36;
  --crimson-dark: #8e1327;
  --warm: #e9dace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

/* Base styles */
* {
  box-sizing: border-box;
}

/* Layout */
html {
  scroll-behavior: smooth;
}

/* Typography */
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

/* Links */
a {
  color: inherit;
}

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

/* Headings */
h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

/* Other Headings */
h1,
h2,
h3 {
  text-align: left;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

/* Hero Heading */
h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.15rem, 4vw, 7.1rem);
}

/* Subheading */
h2 {
  max-width: 800px;
  margin-bottom: 25px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

/* Heading 3 */
h3 {
  margin-bottom: 15px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

/* Selection */
::selection {
  color: #fff;
  background: var(--crimson);
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

/* Skip Link - Focus */
.skip-link:focus {
  transform: translateY(0);
}

/* Main Site Variables */
.site-header,
.site-footer,
.section-shell {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

/* Site Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* Brand Mark */
.brand-mark {
  display: grid;
  width: 31px;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: var(--crimson);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 700;
}

/* Site Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Navigation Links */
.site-nav a,
.footer-links a {
  font-size: 0.9rem;
  text-decoration: none;
}

/* Navigation Link Styles */
.site-nav a {
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}

/* Navigation Link Styles */
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .is-current {
  border-color: var(--crimson);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: clamp(48px, 8vw, 120px);
  min-height: min(790px, calc(100vh - 94px));
  padding-block: 120px 80px;
}

/* Hero Copy */
.hero-copy {
  padding-bottom: 8px;
}

/* Meta Information */
.eyebrow,
.section-number,
.service-number,
.project-type,
.post-meta {
  color: var(--crimson);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Eyebrow  */
.eyebrow {
  margin-bottom: 21px;
}

/* Intro */
.intro {
  max-width: 650px;
  margin-bottom: 35px;
  color: #3f3c39;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2vw, 1.58rem);
  line-height: 1.4;
}

/* Narrow Intro */
.narrow-intro {
  max-width: 610px;
}

/* Button Row */
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

/* Primary Button */
.button-primary {
  color: #fff;
  background: var(--crimson);
}

/* Primary Button - Hover and Focus */
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--crimson-dark);
}

/* Light Button */
.button-light {
  color: var(--ink);
  background: #fff;
}

/* Light Button - Hover and Focus */
.button-light:hover,
.button-light:focus-visible {
  background: var(--soft);
}

/* Text Link */
.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

/* Text Link - Span */
.text-link span {
  color: var(--crimson);
  font-size: 1.15em;
}

/* Text Link - Hover and Focus */
.text-link:hover,
.text-link:focus-visible {
  color: var(--crimson);
}

/* Image Placeholder */
.image-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 26px;
  color: #3f3935;
  background: repeating-linear-gradient(
    135deg,
    #eee9e4 0,
    #eee9e4 8px,
    #e7e1dc 8px,
    #e7e1dc 9px
  );
  border: 1px solid #d9d1ca;
}

/* Image Placeholder Description */
.image-placeholder p {
  max-width: 330px;
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Placeholder Label */
.placeholder-label {
  width: max-content;
  margin-bottom: 12px;
  padding: 4px 8px;
  color: #fff;
  background: var(--crimson);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Portrait Placeholder */
.portrait-placeholder {
  transform: translateY(-75px);
  min-height: auto;
  padding: 0;
  border: none;
  background: none;
}

/* Portrait Placeholder */
.portrait-placeholder .placeholder-label,
.portrait-placeholder p {
  display: none;
}

/* Portrait Image */
.portrait-image {
  width: 100%;
  height: auto;
}

/* Statement Section */
.statement-section {
  max-width: 900px;
  margin-left: max(24px, calc((100% - 1280px) / 2));
  padding-block: 150px;
}

/* Statement Section Copy */
.statement-section > p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

/* Section Number */
.section-number {
  margin-bottom: 26px;
}

/* Services Section */
.services-section {
  padding-block: 100px 130px;
  border-top: 1px solid var(--line);
}

/* Section Heading */
.section-heading {
  display: block;
  margin-bottom: 67px;
}

/* Section Heading H2 */
.section-heading h2 {
  margin-top: 18px;
  margin-bottom: 0;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
  gap: 1px;
  background: var(--line);
}

/* Service Card */
.service-card {
  min-height: 340px;
  padding: 34px;
  background: var(--paper);
}

/* Featured Service Card */
.service-card-featured {
  background: var(--ink);
  color: #fff;
}

/* Service Card Copy */
.service-card p:not(.service-number) {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-card p + p {
  margin-top: 14px;
}

.service-card .service-copy-spaced {
  margin-top: 10px !important;
}

.service-card .text-link {
  display: inline-flex;
  margin-top: 22px;
}

/* Featured Service Card Copy */
.service-card-featured p:not(.service-number) {
  color: #d5d0cc;
}

/* Featured service: spacing and styling for the 'What you'll learn' intro line */
.service-card-featured .learn-heading {
  margin-top: 20px !important;
  margin-bottom: 0;
}

/* Featured service image */
.service-card-featured .service-card-image {
  margin: -30px 0 30px;
  width: fit-content;
}

.service-card-featured .service-card-image img {
  display: block;
  width: 146px;
  height: auto;
  background: #fff;
}

/* Ensure text-link is visible on dark featured service cards */
.service-card-featured .text-link {
  color: #fff;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  margin-top: 25px;
  padding: 10px 14px;
  border: 1px solid var(--crimson);
}
.service-card-featured .text-link span {
  color: var(--crimson);
}
.service-card-featured .text-link:hover,
.service-card-featured .text-link:focus-visible {
  color: #fff;
  background: #e4425f;
}

/* Service Card List */
.service-card ul {
  margin: 25px 0 0;
  padding-left: 17px;
  color: #d5d0cc;
  font-size: 0.92rem;
}

/* Service Card List Item */
.service-card li + li {
  margin-top: 7px;
}

/* Service Number */
.service-number {
  margin-bottom: 72px;
}

/* Approach Section */
.approach-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 10vw, 190px);
  padding-block: 135px;
}

/* Approach Copy */
.approach-copy h2 {
  margin-bottom: 0;
}

/* Process List */
.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

/* Process List Item */
.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 25px;
  padding: 30px 0 25px;
  border-bottom: 1px solid var(--line);
}

/* Process List Item Number */
.process-list li > span {
  color: var(--crimson);
  font-size: 0.76rem;
  font-weight: 700;
}

/* Process List Item Heading */
.process-list h3 {
  font-size: 2rem;
}

/* Process List Item Copy */
.process-list p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
}

/* Work Section */
.work-section {
  padding-block: 115px 145px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

/* Section Heading Split */
.section-heading-split > p {
  max-width: 355px;
  margin-bottom: 5px;
  color: #cfcac5;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(35px, 8vw, 140px);
}

/* Project Card */
.project-card {
  padding-top: 20px;
}

.project-card > div {
  margin-bottom: 26px;
}

.project-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.project-card .text-link {
  display: block;
  margin-bottom: 14px;
  color: #fff;
}

.project-card .text-link:last-child {
  margin-bottom: 0;
}

/* Project Card Offset */
.project-card-offset {
  padding-top: 80px;
}

/* Project Placeholder */
.project-placeholder {
  min-height: 345px;
  margin-bottom: 21px;
  color: #39322e;
}

/* Warm Placeholder */
.warm-placeholder {
  background: repeating-linear-gradient(
    135deg,
    #e7d6c7 0,
    #e7d6c7 8px,
    #ddcbbc 8px,
    #ddcbbc 9px
  );
}

/* Project Type */
.project-type {
  margin-bottom: 10px;
}

/* Project Card H3 */
.project-card h3 {
  margin-bottom: 17px;
}

/* Project Card Text Link */
.project-card .text-link {
  color: #fff;
}

/* Project Card Text Link - Hover and Focus */
.project-card .text-link:hover,
.project-card .text-link:focus-visible {
  color: #f1b5c0;
}

/* About Section */
.about-section {
  padding-block: 145px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(50px, 10vw, 180px);
}

/* About Grid H2 */
.about-grid h2 {
  margin-bottom: 0;
}

/* About Content */
.about-content {
  padding-top: 59px;
}
@media (max-width: 800px) {
  .about-content {
    padding-top: 0;
  }
}

/* About Content Paragraphs */
.about-content p {
  color: var(--muted);
}

/* Project Card Paragraph */
.project-card p {
  color: #d3c6c6;
  margin-bottom: 22px;
}

/* About Content Last Paragraph */
.about-content p:last-of-type {
  margin-bottom: 30px;
}

.learning-experiments-paragraph {
  margin-top: 20px !important;
}

/* CTA Section */
.cta-section {
  margin-bottom: 120px;
  padding: clamp(55px, 9vw, 120px);
  color: #fff;
  background: var(--crimson);
}

/* CTA Section Eyebrow */
.cta-section .eyebrow {
  color: #ffd9df;
}

/* CTA Section Heading */
.cta-section h2 {
  max-width: 840px;
  margin-bottom: 34px;
}

/* Site Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
  align-items: start;
  padding-block: 36px 42px;
  border-top: 1px solid var(--line);
}

/* Site Footer Paragraph */
.site-footer > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer Links */
.footer-links {
  display: flex;
  gap: 19px;
}

/* Footer Links - Hover and Focus */
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--crimson);
}

/* Footer Copyright */
.site-footer .copyright {
  grid-column: 1 / -1;
  margin-top: 12px;
  font-size: 0.75rem;
}

/* Page Hero */
.page-hero {
  padding-block: 150px 100px;
}

/* Blog Section */
.blog-section {
  padding-bottom: 130px;
}

.archive-link {
  margin-top: 88px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.archive-link .eyebrow {
  margin-bottom: 10px;
}

.archive-link .text-link {
  color: var(--muted);
  font-weight: 600;
}

.archive-link .text-link:hover,
.archive-link .text-link:focus-visible {
  color: var(--crimson);
}

/* Article Hero */
.article-hero {
  padding-block: 140px 70px;
}

.article-hero .intro {
  max-width: 720px;
  margin-bottom: 42px;
}

.article-image {
  margin: 0;
  padding: 0;
}

.article-image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.article-content {
  max-width: 780px;
  padding-bottom: 90px;
}

.article-content p,
.article-content li {
  color: #3f3c39;
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 54px;
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3vw, 2.6rem);
}

.article-quote {
  margin: 44px 0 30px;
  padding: 24px 28px;
  color: var(--ink);
  background: #f8f2eb;
  border-left: 3px solid var(--crimson);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
}

.article-list {
  margin: 0 0 24px 20px;
  padding: 0;
}

.article-list li + li {
  margin-top: 10px;
}

/* Featured Post */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
  padding-block: 0 105px;
  border-bottom: 1px solid var(--line);
}

/* Article Placeholder */
.article-placeholder {
  min-height: 420px;
}

/* Featured Post Content */
.featured-post-content h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
}

/* Featured Post Content Paragraph */
.featured-post-content > p:not(.post-meta) {
  color: var(--muted);
}

/* Post Meta */
.post-meta {
  margin-bottom: 17px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* Post Card */
.post-card {
  min-height: 355px;
  padding: 46px 45px 40px;
  border-bottom: 1px solid var(--line);
}

/* Post Card - Odd */
.post-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

/* Post Card H2 */
.post-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3vw, 2.8rem);
}

/* Post Card Paragraph */
.post-card > p:not(.post-meta) {
  max-width: 445px;
  color: var(--muted);
}

/* Post Card Text Link */
.post-card .text-link {
  margin-top: 22px;
}

/* Contact Hero */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 45px;
  align-items: end;
  padding-block: 145px 105px;
}

/* Contact Direct */
.contact-direct {
  min-width: 240px;
  padding-bottom: 9px;
}

/* Contact Direct Paragraph */
.contact-direct p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Contact Direct Link */
.contact-direct a {
  color: var(--crimson);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Contact Section */
.contact-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(50px, 11vw, 190px);
  padding-block: 85px 130px;
  border-top: 1px solid var(--line);
}

/* Contact Note */
.contact-note h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

/* Contact Note Paragraph */
.contact-note > p:not(.section-number) {
  max-width: 390px;
  color: var(--muted);
}

/* Contact List */
.contact-list {
  margin: 28px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

/* Contact List Item */
.contact-list li + li {
  margin-top: 7px;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 23px;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Form Field */
.field {
  display: grid;
  gap: 8px;
}

/* Form Field Label */
.field label {
  font-size: 0.88rem;
  font-weight: 700;
}

/* Form Field Label - Optional */
.field label span {
  color: var(--muted);
  font-weight: 400;
}

/* Form Field Input, Select, Textarea */
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 51px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc8c1;
  border-radius: 0;
  font: inherit;
}

/* Form Field Textarea */
.field textarea {
  resize: vertical;
}

/* Form Field Focus */
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--crimson);
  outline: 2px solid rgba(177, 31, 54, 0.16);
  outline-offset: 2px;
}

/* Contact Form Button */
.contact-form .button {
  justify-self: start;
}

/* Form Help */
.form-help {
  max-width: 530px;
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Image Strip */
.image-strip {
  padding-bottom: 130px;
}

/* Image Strip Placeholder */
.strip-placeholder {
  min-height: 340px;
  background:
    linear-gradient(100deg, rgba(177, 31, 54, 0.18), rgba(177, 31, 54, 0) 50%),
    repeating-linear-gradient(
      135deg,
      #eee9e4 0,
      #eee9e4 8px,
      #e7e1dc 8px,
      #e7e1dc 9px
    );
}

/* Media Query for Tablet and Smaller Screens */
@media (max-width: 1024px) {
  .hero,
  .approach-section,
  .about-grid,
  .featured-post,
  .contact-section,
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact-hero {
    display: block;
  }

  .section-heading > p,
  .contact-direct {
    margin-top: 25px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Media Query for Screens up to 800px Wide */
@media (max-width: 800px) {
  .site-header,
  .site-footer,
  .section-shell {
    width: min(100% - 32px, 1280px);
  }

  /* Site Header */
  .site-header {
    min-height: 80px;
  }

  /* Site Navigation */
  .site-nav {
    gap: 16px;
  }

  /* Site Other */
  .hero,
  .approach-section,
  .about-grid,
  .featured-post,
  .contact-section {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    min-height: 0;
    padding-block: 85px 72px;
  }

  /* Portrait Placeholder */
  .portrait-placeholder {
    min-height: 360px;
    transform: translateY(-30px);
  }

  /* Statement Section */
  .statement-section {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
    padding-block: 105px;
  }

  /* Section Heading and Contact Hero */
  .section-heading,
  .contact-hero {
    display: block;
  }

  /* Section Heading and Contact Hero */
  .section-heading > p,
  .contact-direct {
    margin-top: 25px;
  }

  /* Grid Layouts */
  .service-grid,
  .project-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Service Card */
  .service-card {
    min-height: auto;
  }

  /* Service Number */
  .service-number {
    margin-bottom: 45px;
  }

  /* Approach Section and About Section */
  .approach-section,
  .about-section {
    padding-block: 95px;
  }

  /* Work Section */
  .work-section {
    padding-block: 90px 110px;
  }

  /* Project Card Offset */
  .project-card-offset {
    padding-top: 0;
  }

  /* Project Placeholder and Article Placeholder */
  .project-placeholder,
  .article-placeholder {
    min-height: 310px;
  }

  /* CTA Section */
  .cta-section {
    margin-bottom: 84px;
  }

  /* Site Footer */
  .site-footer {
    grid-template-columns: 1fr;
  }

  /* Site Footer Paragraph */
  .site-footer > p {
    margin: 0;
  }

  /* Site Footer Copyright */
  .site-footer .copyright {
    grid-column: auto;
  }

  /* Page Hero and Contact Hero */
  .page-hero,
  .contact-hero {
    padding-block: 100px 78px;
  }

  /* Featured Post */
  .featured-post {
    padding-bottom: 80px;
  }

  /* Post Card */
  .post-card {
    min-height: auto;
    padding: 40px 0;
  }

  /* Post Card - Odd */
  .post-card:nth-child(odd) {
    border-right: 0;
  }

  /* Contact Section */
  .contact-section {
    padding-block: 65px 90px;
  }

  /* Contact Note */
  .contact-note h2 {
    max-width: 590px;
  }
}

/* Media Query for Screens up to 500px Wide */
@media (max-width: 500px) {
  .brand > span:last-child {
    display: none;
  }

  /* Site Navigation */
  .site-nav {
    gap: 13px;
  }

  /* Site Navigation Links */
  .site-nav a {
    font-size: 0.82rem;
  }

  /* Page Title */
  h1 {
    font-size: clamp(2.8rem, 15vw, 4.1rem);
  }

  /* Form Row */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Image Placeholder */
  .image-placeholder {
    padding: 20px;
  }
}

/* Homepage: slightly smaller H1 on mobile only */
@media (max-width: 800px) {
  body.home h1 {
    font-size: clamp(3rem, 6vw, 3.2rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }
  /* Reduce gap between H1 and intro paragraph on homepage mobile */
  body.home .intro {
    margin-bottom: 20px;
  }
}
