:root {
  --bg: #f5f2ea;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdf8;
  --surface-alt: #e7e0d2;
  --text: #1f2933;
  --text-soft: #52606d;
  --text-reversed: #aac2d8;
  --heading: #18212b;
  --border: rgba(24, 33, 43, 0.12);
  --accent: #28529c;
  --accent-strong: #135385;
  --charcoal: #42505c;
  --charcoal-reversed: #d3d4d6;
  --shadow: 0 18px 40px rgba(31, 41, 51, 0.08);
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --container: min(72rem, calc(100vw - 2rem));
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(160, 78, 44, 0.12),
      transparent 28rem
    ),
    linear-gradient(180deg, #f7f3ea 0%, #f2ede3 52%, #ece4d7 100%);
  color: var(--text);
  font:
    300 1rem/1.375 "Inter",
    "Avenir Next",
    "Geneva",
    "Segoe UI",
    sans-serif;
}

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

button,
a {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

h1,
h2 {
  font-weight: 900;
  line-height: 1.0875;
}

h3 {
  font-weight: 700;
  line-height: 1.0875;
}

:focus-visible {
  outline: 3px solid rgba(44, 88, 160, 0.3);
  outline-offset: 3px;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 48rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  /* backdrop-filter: blur(16px); */
  background: var(--accent-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -1px 7px 0 rgba(20, 0, 0, 0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 999px;
  background: url(../images/daniels-face-pixellated.png);
  background-size: cover;
  color: #fff8f2;
  letter-spacing: 0.08em;
}
.brand-mark .brand-initials {
  visibility: hidden;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 0.98rem;
  color: #fff;
}

.brand-copy span {
  color: var(--text-reversed);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.65rem 1rem;
  font: inherit;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--text-reversed);
  padding: 0.55rem 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

main {
  flex: 1;
}

.hero,
.page-hero,
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid,
.split-grid,
.two-column {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.9fr);
  align-items: end;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.split-grid h2,
.two-column h2 {
  color: var(--heading);
  font-family: "Jersey 25", "Georgia", "Times New Roman", serif;
  line-height: 1;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 44rem;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow,
.panel-label {
  margin: 0 0 0.85rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.button-link-primary {
  background: var(--accent-strong);
  color: #fffaf5;
}

.button-link-primary:hover,
.button-link-primary:focus-visible {
  background: #0f161f;
  color: #fffaf5;
  transform: translateY(-1px);
}

.button-link-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--heading);
}

.button-link-secondary:hover,
.button-link-secondary:focus-visible {
  border-color: rgba(44, 67, 160, 0.25);
  background: rgba(44, 71, 160, 0.08);
  color: var(--heading);
}

.hero-panel,
.card,
.callout,
.timeline-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel,
.callout,
.timeline-item {
  padding: 1.5rem;
}

.hero-panel h2,
.card h3,
.timeline-item h3 {
  margin: 0;
  color: var(--heading);
}

.hero-panel p:last-child,
.timeline-item p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.inline-list,
.detail-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.inline-list li {
  border-radius: 6px;
  background: var(--charcoal);
  color: var(--charcoal-reversed);
  padding: 0.375rem 0.8rem;
  font-size: 0.92rem;
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3),
    rgba(231, 224, 210, 0.5)
  );
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.split-grid h2,
.two-column h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.card-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem;
}

.card p,
.timeline-item p,
.callout p,
.stack-list p {
  margin: 0;
  color: var(--text-soft);
}

.prose-stack {
  display: grid;
  gap: 1rem;
}

.prose-stack p {
  margin: 0;
  color: var(--text-soft);
}

.card-link {
  margin-top: auto;
  font-weight: 600;
}

.split-grid.contact-layout {
  grid-template-columns: minmax(11rem, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
}

.contact-photo-col {
  width: 100%;
  max-width: 13rem;
  justify-self: center;
  aspect-ratio: 1 / 1;
}

.contact-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: url(../images/daniels-face-pixellated.png);
  background-size: cover;
  border: 1px solid var(--charcoal-reversed);
  box-shadow: 1px 3px 7px rgba(20, 0, 0, 0.15);
}

.contact-preview {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.contact-preview li {
  color: var(--text-soft);
}

.contact-preview-label {
  font-weight: 600;
  color: var(--heading);
}

.contact-preview-link {
  word-break: break-word;
}

.contact-list-wrap {
  max-width: 42rem;
}

.contact-list {
  margin: 0;
  padding: 1.25rem 1.4rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
}

.contact-list-item {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(24, 33, 43, 0.1);
  color: var(--text-soft);
}

.contact-list-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list-label {
  font-weight: 600;
  color: var(--heading);
}

.contact-list-link {
  word-break: break-word;
}

.split-grid,
.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.stack-item {
  border-left: 3px solid rgb(30 71 143 / 35%);
  padding-left: 1rem;
}

.detail-list {
  display: grid;
  gap: 0.8rem;
}

.detail-list li {
  position: relative;
  padding-left: 1.2rem;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-item .meta {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.timeline-company,
.timeline-location {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.timeline-summary {
  margin-top: 0.4rem;
}

.timeline-points {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.timeline-points li + li {
  margin-top: 0.55rem;
}

.timeline-technologies {
  margin-top: 1rem;
}

.timeline-technologies-label {
  margin: 0 0 0.35rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline-technologies-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.timeline-technologies-list li {
  display: inline;
}

.timeline-technologies-list li:hover {
  background: var(--charcoal-reversed);
  border-radius: 3px;
}

.timeline-technologies-list li::after {
  content: ", ";
}

.timeline-technologies-list li:last-child::after {
  content: "";
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(50, 44, 160, 0.16);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--charcoal-reversed);
  padding: 0.375rem 0.9rem;
  font-size: 0.94rem;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(24, 33, 43, 0.08);
  background: var(--accent-strong);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-content p {
  margin: 0;
  color: var(--text-reversed);
}

.footer-meta {
  font-size: 0.875rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .split-grid.contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .split-grid,
  .two-column,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .hero,
  .page-hero,
  .section {
    padding: 3rem 0;
  }

  .footer-content {
    flex-direction: column;
  }

  .timeline-item header {
    flex-direction: column;
  }
}
