/* Andy Ayrey — 1:1 clone
   Fonts mirror the original Typekit stack: freight-sans-pro (body)
   + jaf-lapture-display (headings). The typekit CSS referenced in
   index.html will load them; system fallbacks cover offline.
*/

:root {
  /* Palette lifted from andyayrey.com tokens:
     lightAccent hsl(37.5,11%,86%), accent hsl(306,36%,31%) */
  --bg: #f6f2ea;           /* warm cream body */
  --bg-alt: hsl(37.5, 11%, 86%);  /* light beige for testimonial */
  --bg-dark: #0d0d0d;      /* footer black */
  --ink: #1a1a1a;
  --ink-soft: #2b2b2b;
  --rule: #d9d2c3;
  --accent: hsl(306, 36%, 31%);   /* deep magenta/purple */
  --link: var(--accent);
  --page-pad: 3vw;
  --max-w: 1800px;
  --content-max: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "freight-sans-pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: .6; }

h1, h2, h3, h4 {
  font-family: "jaf-lapture-display", "adobe-garamond-pro", "Garamond", "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 .6em;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h3 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); }
.italic { font-style: italic; }

p { margin: 0 0 1.1em; }
p.lede { font-size: 1.18rem; line-height: 1.55; color: var(--ink-soft); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 4vw 0 3vw;
}

strong { font-weight: 700; }
em { font-style: italic; }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5vw;
}
.col-3 { flex: 0 0 calc(25% - 2.5vw); }
.col-4 { flex: 0 0 calc(33.3333% - 1.8vw); }
.col-8 { flex: 0 0 calc(66.6666% - 1.25vw); }
.col-9 { flex: 0 0 calc(75% - 1vw); }

.spacer-md { height: 4vw; }
.spacer-lg { height: 6vw; }

/* ------ Header ------ */
.site-header {
  padding: 2.8vw var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { flex-shrink: 0; }
.logo img {
  display: block;
  height: 90px;
  width: auto;
  /* logo ships as white-on-transparent; invert for light bg */
  filter: invert(1);
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.site-nav a { text-decoration: none; }
.header-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.header-social a { display: inline-flex; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 18px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: "jaf-lapture-display", "adobe-garamond-pro", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, opacity .2s;
}
.btn-pill:hover {
  background: #fff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}
.btn-pill--active {
  background: #fff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.icon {
  width: 26px;
  height: 26px;
  fill: var(--accent);
  transition: opacity .2s;
}
.icon-light { fill: #fff; }

/* ------ Sections ------ */
.section {
  padding: 5vw 0;
}
.section.intro { padding-top: 2vw; }
.section.projects { padding: 6vw 0; }
.section.testimonial {
  background: var(--bg-alt);
  padding: 8vw 0;
}
.section.testimonial h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.35;
  font-style: normal;
}
.attribution {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Projects list */
.project-list p {
  margin: 0 0 1.15em;
  font-size: 1.05rem;
  line-height: 1.5;
}
.project-list a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.project-list a:hover { border-color: var(--ink); opacity: 1; }

/* ------ Footer ------ */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 5vw var(--page-pad);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.btn {
  display: inline-block;
  padding: 18px 42px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn:hover {
  background: #fff;
  color: var(--bg-dark);
  opacity: 1;
}
.footer-social {
  display: flex;
  gap: 18px;
}

/* ------ Responsive ------ */
@media (max-width: 900px) {
  .row { gap: 4vw; }
  .col-3, .col-4, .col-8, .col-9 { flex: 0 0 100%; }
  .areas .col-4 { flex: 0 0 100%; }
  .logo img { height: 65px; }
  .site-header { padding: 6vw var(--page-pad); }
  .site-nav { display: none; }
  h3 { font-size: 1.5rem; }
  p.lede { font-size: 1.08rem; }
}
