/* Zach Stone — zachstoneky.com
   Palette: Bedrock, Limestone, Sandstone, Slate, Shale, Moss
   Type: Archivo (headings) + Inter (body)
*/

:root {
  --bedrock: #2F2B27;
  --limestone: #F2ECE1;
  --sandstone: #C2A277;
  --slate: #5C6166;
  --shale: #6F675D;
  --moss: #6B7A47;
  --limestone-deep: #E8E0D2;
  --limestone-muted: #D6CFC2;
  --header-h: 5.15rem;
  --max: 70rem;
  --measure: 38rem;
  --space: 1.25rem;
  --font-head: "Archivo", "Segoe UI", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--bedrock);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sandstone);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  background: var(--sandstone);
  color: var(--bedrock);
  padding: 0.6rem 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bedrock);
  border-bottom: 1px solid rgba(194, 162, 119, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  min-height: var(--header-h);
}

.logo-link {
  flex: 0 0 auto;
  line-height: 0;
}

.logo-desktop img {
  height: 3.85rem;
  width: auto;
}

.logo-mobile img {
  height: 2.5rem;
  width: 2.5rem;
}

.logo-mobile {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.75rem;
}

.site-nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--limestone);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--sandstone);
  border-bottom-color: var(--moss);
}

.site-nav .btn-nav {
  border-bottom: 0;
  margin-left: 0.35rem;
}

.site-nav .btn-nav:hover {
  border-bottom: 0;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(242, 236, 225, 0.25);
  background: transparent;
  color: var(--limestone);
  cursor: pointer;
  border-radius: 2px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--sandstone);
  color: var(--bedrock);
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--sandstone);
  border-radius: 1px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}

.btn:hover {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--limestone);
}

.btn-nav {
  padding: 0.7rem 1.15rem;
  font-size: 0.74rem;
}

/* ---------- Shared section chrome ---------- */

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bedrock);
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bedrock);
  line-height: 1.3;
}

.lede {
  margin: 0 0 2.5rem;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--shale);
  max-width: 40rem;
  text-wrap: pretty;
}

.rule {
  width: 4.5rem;
  height: 2px;
  background: var(--moss);
  border: 0;
}

.rule-moss {
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--bedrock);
  color: var(--limestone);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
}

.hero-inner {
  width: min(36rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-lockup {
  margin: 0;
  width: 100%;
}

.hero-lockup img {
  width: 100%;
  max-width: 28.5rem;
  margin: 0 auto;
}

.hero .rule {
  margin: 1.75rem auto 1.4rem;
}

.founder-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sandstone);
}

.one-liner {
  margin: 0 0 2.1rem;
  font-weight: 400;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--limestone);
  max-width: 24.5rem;
}

/* ---------- About ---------- */

.about {
  background: var(--limestone);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 3.5rem 4.25rem;
  align-items: center;
}

.about-photo {
  margin: 0;
  position: relative;
  z-index: 0;
  padding: 0 0.85rem 0.85rem 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 2px;
}

.about-photo::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0;
  bottom: 0;
  border: 1px solid var(--sandstone);
  border-radius: 2px;
  pointer-events: none;
  z-index: -1;
}

.about-copy p {
  margin: 0 0 1.15rem;
  max-width: var(--measure);
  color: var(--bedrock);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- What I share ---------- */

.share {
  background: var(--limestone);
  border-top: 1px solid rgba(92, 97, 102, 0.18);
}

.share .section-inner {
  padding-top: 4.5rem;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2.5rem;
}

.share-block {
  padding-top: 1.15rem;
  border-top: 2px solid var(--moss);
}

.share-num {
  margin: 0 0 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sandstone);
}

.share-block p:last-child {
  margin: 0;
  color: var(--bedrock);
}

/* ---------- Follow along ---------- */

.follow {
  background: var(--limestone-deep);
  border-top: 1px solid rgba(92, 97, 102, 0.18);
}

.follow-inner {
  text-align: center;
  padding-top: 4.75rem;
  padding-bottom: 4.75rem;
}

.follow .lede {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.handle {
  font-weight: 600;
  color: var(--bedrock);
}

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bedrock);
  background: var(--limestone);
  border: 1px solid rgba(47, 43, 39, 0.18);
  padding: 0.75rem 1.05rem;
  border-radius: 1px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  background: var(--bedrock);
  border-color: var(--bedrock);
  color: var(--limestone);
}

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

.contact {
  background: var(--limestone);
  border-top: 1px solid rgba(92, 97, 102, 0.18);
}

.contact-inner {
  text-align: center;
  max-width: 42rem;
  padding-top: 5rem;
  padding-bottom: 5.25rem;
}

.contact .lede {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.contact-email {
  margin: 0 0 1.6rem;
}

.contact-email a {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--bedrock);
  text-decoration: none;
  border-bottom: 1px solid var(--sandstone);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email a:hover {
  color: var(--moss);
  border-bottom-color: var(--moss);
}

.helper {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--shale);
}

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

.site-footer {
  background: var(--bedrock);
  color: var(--limestone);
  text-align: center;
}

.footer-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.75rem;
}

.footer-mark {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.35rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--limestone);
}

.footer-tag {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--sandstone);
  text-wrap: balance;
}

.footer-email {
  margin: 0 0 1.5rem;
}

.footer-email a {
  color: var(--limestone);
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 162, 119, 0.55);
  padding-bottom: 0.08rem;
}

.footer-email a:hover {
  color: var(--sandstone);
  border-bottom-color: var(--sandstone);
}

.rule-footer {
  margin: 0 auto 1.5rem;
}

.disclaimer {
  margin: 0 auto 0.4rem;
  max-width: 32rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cfc8bb;
}

.legal {
  margin: 1.35rem 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--limestone-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    max-width: 36rem;
  }

  .about-photo {
    max-width: 20rem;
    margin: 0 auto;
  }

  .share-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 34rem;
  }
}

@media (max-width: 760px) {
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bedrock);
    border-bottom: 1px solid rgba(194, 162, 119, 0.22);
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .nav-toggle[aria-expanded="true"] + .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(242, 236, 225, 0.1);
  }

  .site-nav a:hover {
    border-bottom-color: var(--moss);
  }

  .site-nav .btn-nav {
    margin: 0.9rem 0 0.25rem;
    text-align: center;
    border-bottom: 1px solid var(--sandstone);
  }

  .section-inner,
  .follow-inner,
  .contact-inner {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .hero {
    min-height: calc(100svh - 4.5rem);
    padding: 3.25rem 1.25rem 3.75rem;
  }

  .header-inner {
    padding: 0.7rem 1.15rem;
  }
}

@media (max-width: 420px) {
  .socials {
    flex-direction: column;
    align-items: center;
  }

  .socials a {
    justify-content: center;
    width: 13.75rem;
  }

  .one-liner {
    max-width: 20rem;
  }

  .hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-lockup img {
    max-width: 22.5rem;
  }

  .legal {
    letter-spacing: 0.08em;
    text-wrap: balance;
  }
}
