/* BirdFoundry: paper, ink and watercolour. Type: Fraunces + Inter. */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Outfit is the wordmark only */
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #f6f2ea;
  --paper-warm: #f3ede2;
  --paper-light: #faf7f1;
  --ink: #0e2233;
  --navy: #10283b;
  --text: #3d4a58;
  --muted: #68727e;
  --rule: rgba(14, 34, 51, 0.12);

  --blue: #1f6a94;
  --teal: #2f93a3;
  --aqua: #7cc7c4;
  --green: #7f9c5a;
  --yellow: #eeb93c;
  --orange: #f39a2e;
  --coral: #f2714f;
  --red: #dc3f4b;
  --berry: #a8325a;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 6.6vw, 6.5rem);
  --section: clamp(2.75rem, 4.4vw, 4rem);

  /* paper grain, laid over every section */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42  0 0 0 0 .34  0 0 0 0 .22  0 0 0 .34 -.13'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 4.05vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 3vw, 2.875rem);
  line-height: 1.08;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 96rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.lead {
  color: var(--text);
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}
.btn--small {
  padding: 0.7rem 1.5rem;
  font-size: 0.9375rem;
}
.btn--primary {
  background: var(--navy);
  color: #fdfbf6;
}
.btn--primary:hover {
  background: #1a3d57;
}
.btn--secondary {
  border-color: rgba(14, 34, 51, 0.28);
  color: var(--ink);
}
.btn--secondary:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}
.btn--light {
  background: var(--paper-light);
  color: var(--navy);
}
.btn--light:hover {
  background: #fff;
}
.arrow {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding-top: clamp(1rem, 1.7vw, 1.625rem);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand__mark {
  width: clamp(4.25rem, 6.4vw, 6.25rem);
}
.brand__name {
  color: var(--ink);
  font-family: "Outfit", var(--sans);
  font-size: clamp(1.625rem, 2.5vw, 2.375rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand__name b {
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}
.nav__links {
  display: flex;
  gap: clamp(1.25rem, 2.3vw, 2.25rem);
}
.nav__links a {
  padding-block: 0.4rem;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
  background: linear-gradient(var(--coral), var(--coral)) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.2s;
}
.nav__links a:hover {
  background-size: 100% 1.5px;
}

/* hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(236, 226, 208, 0.38), rgba(236, 226, 208, 0.12));
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  position: relative;
  padding-top: clamp(8rem, 10.6vw, 10rem);
  padding-bottom: clamp(3rem, 4.2vw, 4rem);
}
.hero .eyebrow {
  margin-bottom: 1.25rem;
}
.hero .lead {
  max-width: min(34rem, 51vw);
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.17vw, 1.125rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
  margin-top: 2rem;
}
.hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__wash {
  position: absolute;
  right: -2%;
  bottom: -1.5rem;
  width: min(74vw, 71rem);
  max-width: none;
}
.hero__bird {
  position: absolute;
  right: clamp(1rem, 7vw, 8.5rem);
  top: 50%;
  width: min(34vw, 31rem);
  transform: translateY(-45%);
}

/* section heads */

.section-head .eyebrow {
  margin-bottom: 1.125rem;
}
.section-head__lead {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* services */

.services {
  padding-block: clamp(2.5rem, 3.6vw, 3.25rem) clamp(2.5rem, 3.4vw, 3rem);
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid var(--rule);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(2.25rem, 3.2vw, 3rem);
}
.service {
  padding: 0 1rem 0.5rem clamp(1.25rem, 2vw, 1.75rem);
  border-left: 1px solid var(--rule);
}
.service:first-child {
  padding-left: 0;
  border-left: 0;
}
.service:last-child {
  padding-right: 0;
}
.service img {
  width: 8rem;
  margin: 0 0 0.75rem 2rem;
}
.service p {
  max-width: 18rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* approach */

.approach {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.approach__art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(49vw, 50rem);
  max-width: none;
}
.approach__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}
.approach__body {
  grid-column: 2;
  padding-block: clamp(3rem, 5.5vw, 5.75rem);
  padding-left: clamp(0rem, 2.5vw, 2.5rem);
}
.approach .eyebrow {
  margin-bottom: 1.125rem;
}
.approach__lead {
  max-width: 35rem;
  margin-top: 1.125rem;
}

/* method */

.method {
  padding-block: var(--section);
  background: linear-gradient(to bottom, rgba(236, 226, 208, 0.38), rgba(236, 226, 208, 0.12));
  border-bottom: 1px solid var(--rule);
}
.method__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}
.method__points li {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.method__points li:first-child {
  padding-top: 0;
  border-top: 0;
}
.method__points li:last-child {
  padding-bottom: 0;
}
.method__points p {
  max-width: 34rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* work */

.work {
  padding-block: var(--section);
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid var(--rule);
}
.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  margin-top: clamp(2rem, 3.4vw, 3rem);
}
.work-card {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--paper-light);
}
.work-card img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
}
.work-card__body {
  padding: 1.375rem 1.5rem 1.625rem;
}
.work-card__kind {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.work-card h3 {
  font-size: 1.625rem;
}
.work-card h3 + p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* about */

.about {
  padding-block: var(--section);
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}
.about .eyebrow {
  margin-bottom: 1.125rem;
}
.about h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  line-height: 1.04;
}
/* dry-brush stroke under the heading */
.about h2::after {
  content: "";
  display: block;
  width: 9.5rem;
  height: 0.5rem;
  margin-top: 1.5rem;
  border-radius: 60% 40% 70% 30% / 100% 60% 40% 0%;
  background: linear-gradient(90deg, var(--coral), var(--orange) 55%, rgba(238, 185, 60, 0.35));
}
.about .lead {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
}
.about .lead + p {
  max-width: 34rem;
  margin-top: 1rem;
}
.about__mark {
  width: min(100%, 30rem);
  justify-self: center;
}

/* contact */

.contact {
  padding-block: clamp(3rem, 4.6vw, 4.25rem);
  background: var(--navy) var(--grain);
  color: rgba(246, 242, 234, 0.8);
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.contact .eyebrow {
  margin-bottom: 1.125rem;
  color: var(--aqua);
}
.contact h2 {
  color: var(--paper-light);
}
.contact h2 + p {
  max-width: 36rem;
  margin-top: 1.125rem;
}
.contact__actions {
  display: grid;
  justify-items: start;
  gap: 1rem;
}
.contact__email {
  color: var(--paper-light);
  font-size: 0.9375rem;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(246, 242, 234, 0.4);
}
.contact__email:hover {
  text-decoration-color: currentColor;
}
.contact :focus-visible {
  outline-color: var(--aqua);
}

/* footer */

.site-footer {
  padding-block: 2.5rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem 2rem;
}
.site-footer .brand__mark {
  width: 3.75rem;
}
.site-footer .brand__name {
  font-size: 1.625rem;
}
.site-footer__tagline {
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 0.625rem;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.9375rem;
}
.site-footer__links a {
  color: var(--ink);
  text-decoration: none;
}
.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* smaller screens */

@media (68rem < width <= 92rem) {
  .service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.5rem;
  }
  .service:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
  .service:nth-child(3n) {
    padding-right: 0;
  }
}

@media (max-width: 68rem) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }
  .service:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .service:nth-child(even) {
    padding-right: 0;
  }
}

@media (max-width: 52rem) {
  .nav__links {
    display: none;
  }
  .hero__inner {
    padding-top: 7rem;
    padding-bottom: 1rem;
  }
  .hero .lead {
    max-width: 34rem;
  }
  h1 br {
    display: none;
  }
  .hero__art {
    position: relative;
    inset: auto;
    order: 2;
    height: min(86vw, 26rem);
  }
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero__wash {
    right: -30%;
    bottom: 0;
    width: 150%;
  }
  .hero__bird {
    right: 50%;
    width: min(72vw, 22rem);
    transform: translate(50%, -50%);
  }
  .about__inner,
  .method__inner,
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .method h2 br {
    display: none;
  }
  .approach__inner {
    display: block;
  }
  .approach__body {
    padding-left: 0;
    padding-bottom: 0;
  }
  .approach__art {
    position: static;
    width: 130%;
    margin-top: 1.5rem;
  }
  .approach {
    display: flex;
    flex-direction: column-reverse;
  }
  .work-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .about__mark {
    width: min(70%, 20rem);
    justify-self: start;
  }
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 34rem) {
  .service-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
  }
  .service,
  .service:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }
  .service img {
    margin-left: 0;
  }
  .brand {
    gap: 0.5rem;
  }
  .brand__mark {
    width: 3.25rem;
  }
  .brand__name {
    font-size: 1.375rem;
  }
  .btn--small {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }
  .btn--small .arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 23rem) {
  .brand__mark {
    width: 2.5rem;
  }
  .brand__name {
    font-size: 1.1875rem;
  }
  .btn--small {
    padding-inline: 0.8rem;
  }
}
