:root {
  --page: #f4f6f2;
  --paper: #ffffff;
  --ink: #1f1b18;
  --muted: #69645c;
  --line: #dedbd1;
  --forest: #123d31;
  --green: #17664a;
  --gold: #c6902f;
  --red: #b95142;
  --blue: #315f86;
  --shadow: 0 18px 45px rgba(28, 24, 20, 0.12);
  --bg: #ffffff;
  --muted: #666;
  --accent: #0a66c2;
  --gap: 1rem;
}
@import url('https://fonts.google.com/specimen/DM+Sans?preview.script=Latn');
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(31, 27, 24, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: #ffffff;
  font-size: 0.86rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(23, 102, 74, 0.1);
  color: var(--green);
}

.header-action,
.button,
.text-link,
.project-actions a,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.header-action {
  min-width: 68px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(18, 61, 49, 0.08);
}

.header-action svg,
.button svg,
.text-link svg,
.project-actions svg,
.contact-actions svg,
.skill-card svg,
.project-topline svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.hero {
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: 96px 24px 72px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 20, 18, 0.94) 0%, rgba(17, 20, 18, 0.74) 50%, rgba(17, 20, 18, 0.34) 100%),
    url("assets/profile.jpg");
  background-position: center;
  background-size: cover;
}

.hero-inner,
.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-inner {
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.98;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 850;
}

.button-primary {
  background: var(--gold);
  color: #1b160e;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin: 42px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.hero-facts div {
  padding: 16px;
  background: rgba(8, 12, 10, 0.26);
}

.hero-facts dt {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-weight: 900;
}

.section {
  padding: 84px 24px;
  background: var(--paper);
}

.section-light {
  background: #f7faf6;
}

.section-muted {
  background: #f1f4f4;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: end;
  gap: 28px;
}

.section-heading h2,
.contact-layout h2 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.08;
}

.section-heading p:not(.eyebrow),
.about-copy,
.experience-item p,
.project-card p,
.skill-card p,
.contact-layout p {
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 48px;
}

.about-copy {
  display: grid;
  gap: 18px;
  font-size: 1.06rem;
}

.about-copy p {
  margin: 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(31, 27, 24, 0.06);
}

.skill-card {
  min-height: 222px;
  padding: 22px;
}

.skill-card svg {
  margin-bottom: 28px;
  color: var(--green);
}

.skill-card h3,
.project-card h3,
.timeline-item h3,
.experience-item h3 {
  margin: 0 0 9px;
  line-height: 1.2;
}

.skill-card p,
.project-card p {
  margin: 0;
}

.focus-list {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.focus-row {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) 48px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.focus-row span,
.focus-row strong {
  font-weight: 850;
}

meter {
  width: 100%;
  height: 12px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #e3e6df;
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

meter::-moz-meter-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.timeline {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline-item,
.experience-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  background: var(--paper);
}

.timeline-item {
  padding: 24px;
}

.timeline-year,
.experience-date {
  color: var(--green);
  font-weight: 900;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.experience-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.experience-item {
  padding: 28px;
}

.experience-item ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.experience-item li + li {
  margin-top: 8px;
}

.text-link {
  width: max-content;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--forest);
  color: #ffffff;
  font-weight: 850;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  min-height: 296px;
  flex-direction: column;
  padding: 22px;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-topline svg {
  color: var(--red);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.project-actions a {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  font-weight: 850;
}

.contact-section {
  background: var(--forest);
  color: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: start;
  gap: 42px;
}

.contact-layout h2 {
  max-width: 720px;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-actions a {
  justify-content: flex-start;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1020px) {
  .skill-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .section-heading.split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    min-height: auto;
    padding: 12px 16px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .header-action {
    min-width: 48px;
    padding: 9px 12px;
  }

  .header-action span {
    display: none;
  }

  .nav-links {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 7px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 64svh;
    padding: 58px 18px 42px;
    background:
      linear-gradient(90deg, rgba(17, 20, 18, 0.94) 0%, rgba(17, 20, 18, 0.78) 100%),
      url("assets/profile.jpg");
    background-position: center;
  }

  .hero h1 {
    font-size: 2.72rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hero-facts div {
    padding: 12px 10px;
  }

  .hero-facts dd {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 58px 18px;
  }

  .section-heading h2,
  .contact-layout h2 {
    font-size: 2rem;
  }

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

  .focus-row,
  .timeline-item,
  .experience-item {
    grid-template-columns: 1fr;
  }

  .focus-row {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
*{box-sizing:border-box}
body{font-family:Segoe UI, Roboto, Arial, sans-serif;margin:0;background:var(--bg);color:#111}
.gallery-page{max-width:1200px;margin:2rem auto;padding:0 1rem}
h1{font-size:1.5rem;margin:0 0 .25rem}
.hint{color:var(--muted);margin:0 0 1rem}

.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--gap)}
.gallery-grid figure{margin:0;background:#fafafa;border-radius:8px;overflow:hidden;transition:transform .18s ease, box-shadow .18s ease}
.gallery-grid a{display:block;text-decoration:none;color:inherit}
.gallery-grid img{width:100%;height:200px;object-fit:cover;display:block}
.gallery-grid figcaption{padding:.5rem .75rem;font-size:.95rem;color:var(--muted)}

.gallery-grid figure:hover{transform:translateY(-6px);box-shadow:0 8px 20px rgba(15,23,42,.12)}

/* Larger image height on wider screens */
@media (min-width:900px){
  .gallery-grid img{height:260px}
}

@media (max-width:420px){
  .gallery-grid img{height:160px}
  h1{font-size:1.25rem}
}

