@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/manrope-v12-latin-regular.woff2") format("woff2"),
    url("./fonts/manrope-v12-latin-regular.woff") format("woff");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/manrope-v12-latin-500.woff2") format("woff2"),
    url("./fonts/manrope-v12-latin-500.woff") format("woff");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/manrope-v12-latin-800.woff2") format("woff2"),
    url("./fonts/manrope-v12-latin-800.woff") format("woff");
}

/* Global tokens and typography */
:root {
  --ink: #333644;
  --lime: #bcd701;
  --mt: #5f9ea0;
  --hover: #365656;
  --muted: #6b6c6f;
  --grey: #f9f9f9;

  color: #707070;
  background: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 18px;
  font-synthesis: none;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

/* Reset and shared elements */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  word-spacing: 2px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--hover);
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 25px;
  color: var(--ink);
  font-weight: 800;
  font-family: "Manrope", sans-serif;
}

h1 {
  font-size: 3.6em;
  line-height: 1.2;
  letter-spacing: -2px;
}

h2 {
  font-size: 2.4em;
  line-height: 1.2;
  letter-spacing: -2px;
}

h3 {
  font-size: 1.75em;
  line-height: 1.3;
  letter-spacing: -2px;
}

h4 {
  font-size: 1.45em;
  line-height: 1.2;
  letter-spacing: -1px;
}

p {
  margin: 0 0 10px;
}

p:last-child {
  margin-bottom: 0;
}

/* Shared layout */
.wrap {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.wrap-tight {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header and navigation */
.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 0;
  color: #fff;
}

.header-inner,
.brand,
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: var(--grey);
  font-weight: 400;
}
.nav a:hover {
  text-decoration: underline;
  font-weight: 400;
}

.header-inner {
  justify-content: space-between;
}

.brand {
  gap: 14px;
}

.brand img {
  width: 60px;
  height: 60px;
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 300;
}

.brand .tagline {
  color: #fff;
}

.nav {
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-toggle,
.nav-backdrop {
  display: none;
}

/* Hero */
.hero {
  padding: 145px 0 60px;
  color: #fff;
   background: var(--ink);
  /*background: var(--mt);*/
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-centered .hero-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.hero-centered .hero-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 2.8em;
  letter-spacing: -2px;
  margin-bottom: 0px;
  color: var(--grey);
}

.hero h2 {
  font-weight: 500;
  font-size: 1.2em;
  letter-spacing: -1px;
  color: var(--lime);
}

.hero-copy {
  font-size: 19px;
  line-height: 28px;
}

.subhero {
  padding: 30px 0 0;
  text-align: center;
}

.subhero ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portrait {
  width: 400px;
  aspect-ratio: 600 / 567;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 30px #0002;
  border: 5px solid var(--grey);
}

.portrait-right {
  justify-self: end;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  border-color: var(--hover);
  color: #fff;
  background: var(--hover);
}

.button.primary {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.button.primary:hover {
  border-color: var(--hover);
  background: var(--hover);
}

.hero .button.hero-skills {
  border: 2px solid var(--grey);
  color: var(--grey);
}

.hero .button.hero-contact {
  border-color: var(--lime);
  color: var(--ink);
  background: var(--lime);
}

/* Mission statement */
.mission {
  padding: 40px 5vw;
  /* color: var(--ink);
  background: var(--mt); */
  text-align: center;
}

.mission h3 {
  text-align: center;
}

.mission-quote {
  max-width: 880px;
  margin: 0 auto;
  font-style: italic;
}

.mission-quote p {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
}

.mission-quote cite {
  font-size: 0.8rem;
  font-weight: 800;
}

/* .mission h3 {
  max-width: 100%;
  margin: 0 auto;
} */

/* Shared section spacing */
.section {
  padding: 50px 0;
}

.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}

.philosophy-copy h3 {
  margin-bottom: 25px;
}

.blog-sidebar {
  position: sticky;
  top: 28px;
  padding: 26px;
  border: 1px solid #e6e8e8;
  border-radius: 12px;
  background: var(--grey);
}

.blog-sidebar h3 {
  margin-bottom: 20px;
  font-size: 1.25em;
  letter-spacing: -1px;
}

.blog-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-list li {
  padding: 16px 0;
  border-top: 1px solid #e1e4e4;
}

.blog-list a {
  display: block;
  line-height: 1.35;
}

.blog-list span,
.sample-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.sample-note {
  margin-bottom: 0;
  font-style: italic;
}

.section-title {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

/* Social */
#social {
  background-color: #e6e8e8;
  /*color: #fff;*/
}

/* Projects */
#projects {
  padding: 60px 0;
  border-top: 3px solid var(--mt);
}

.project-logo-strip {
  margin-top: 36px;
}

.project-logo-image {
  display: block;
  width: 80%;
  height: auto;
  margin-inline: auto;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}

.trek {
  width: 100%;
  max-height: 600px;
  border-radius: 22px;
  object-fit: cover;
}

.service-head {
  margin: 0 0 5px;
  color: #000;
  font-weight: 800;
}

.service-desc {
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 26px;
}

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font-style: italic;
}

.signature img {
  width: 120px;
  height: 44px;
  object-fit: contain;
}

.callout {
  margin: 35px 0 0;
  font-weight: 800;
  font-style: italic;
  text-align: center;
}

/* About and skills */
.about {
  background: linear-gradient(180deg, var(--grey), #fff);
}

.intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.center {
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.boxed {
  margin: 4px;
  padding: 10px;
  color: #000;
  background: var(--lime);
  font-size: 16px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0 45px;
}

.skills h4 {
  margin: 0;
  padding: 12px 6px;
  font-size: 1.45em;
}

/* Contact */
.testimonials {
  background: #e6e8e8;
  text-align: center;
}

.testimonials h3 {
  margin-bottom: 32px;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 28px 24px;
  border: 1px solid #e6e8e8;
  border-radius: 12px;
  background: #fff;
}

.testimonial-card blockquote {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card figcaption img {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
}

.testimonial-card figcaption span,
.testimonial-card figcaption small {
  display: block;
}

.testimonial-card figcaption strong {
  color: var(--ink);
  font-size: 0.85rem;
}

.testimonial-card figcaption small {
  margin-top: 3px;
  font-size: 0.68rem;
  line-height: 1.4;
}

.testimonial-press {
  display: flex;
  align-items: center;
}

.testimonial-press img {
  width: 100%;
  border-radius: 12px;
}

/*.contact {
  background: var(--grey);
}*/

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-list {
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 12px 0;
}

.contact-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-image {
  width: 100%;
  border-radius: 18px;
}

/* Footer */
.footer {
  padding: 32px 0;
  color: #fff;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.footer p {
  margin: 0;
}

.footer ul {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer a:hover {
  color: var(--lime);
}

/* Responsive layout */
@media (max-width: 800px) {
  .wrap {
    width: min(100% - 36px, 600px);
  }

  .site-header {
    position: relative;
    padding: 14px 0;
    color: var(--ink);
    background: #fff;
  }

  .brand .tagline {
    color: var(--muted);
  }

  .header-inner {
    position: relative;
    align-items: center;
    flex-direction: row;
  }

  .nav-toggle {
    position: relative;
    z-index: 5;
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }

  .site-header nav {
    position: fixed;
    z-index: 4;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    height: 100dvh;
    padding: 92px 28px 32px;
    background: #fff;
    box-shadow: -12px 0 32px #0002;
    transform: translateX(110%);
    transition: transform 0.25s ease;
  }

  .site-header .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin: 0;
    font-size: 1rem;
  }

  .site-header .nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #e6e8e8;
  }

  .nav-backdrop {
    position: fixed;
    z-index: 3;
    inset: 0;
    display: block;
    border: 0;
    background: #0007;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .site-header.nav-open nav {
    transform: translateX(0);
  }

  .site-header.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    padding: 55px 0 60px;
  }

  /*.mission {
    padding: 20px 18px;
  }

  .mission h2 {
    font-size: 1.5em;
    letter-spacing: -1px;
  }*/

  .hero-grid,
  .philosophy-layout,
  .service-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-grid {
    gap: 35px;
  }

  .portrait-right {
    justify-self: center;
  }

  .philosophy-layout {
    gap: 36px;
  }

  .blog-sidebar {
    position: static;
  }

  .hero-copy {
    max-width: 600px;
  }

  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2em;
  }

  h3 {
    font-size: 1.2em;
    line-height: 1.3;
    letter-spacing: -1px;
  }

  .section-title {
    font-size: 1.2em;
    line-height: 1.3;
    letter-spacing: -1px;
  }

  .portrait {
    max-height: 500px;
    margin: auto;
    object-fit: cover;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 35px;
  }

  .cards,
  .skills {
    grid-template-columns: 1fr;
  }

  .cards {
    gap: 8px;
  }

  .skills {
    gap: 0;
    margin-bottom: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social,
  .footer ul {
    justify-content: center;
  }

  .footer ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .wrap,
  .wrap-tight {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero-grid,
  .hero-centered .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 2.4em;
  }

  .hero h2 {
    font-size: 1.1em;
    letter-spacing: -0.5px;
  }

  .hero-copy {
    font-size: 17px;
    line-height: 1.55;
  }

  .actions {
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    padding: 9px 16px;
  }
}

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Blog code snippets */
.code {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid #252a36;
  border-radius: 8px;
  background: #1e222b;
  color: #e6e8ee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  word-spacing: normal;
  -webkit-font-smoothing: auto;
}

.code pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font: inherit;
  white-space: pre;
}

.code code {
  color: inherit;
  font: inherit;
}

.code .comment {
  color: #929baa;
  font-style: italic;
}

.code .bash,
.code .command {
  color: #c9e681;
}

.inline_code {
  display: inline-block;
  padding: 0.1em 0.45em;
  border: 1px solid #d5d8de;
  border-radius: 5px;
  background: #f3f4f6;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  line-height: 1.4;
  white-space: nowrap;
}
