/* ─────────────────────────────────────────────────────
   Variables & Reset
───────────────────────────────────────────────────── */

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

:root {
  --bg:      #faf9f6;
  --text:    #2b2825;
  --accent:  #b85430;
  --muted:   #7a726a;
  --rule:    #e2d9cf;

  --serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono:    'Menlo', 'Consolas', 'Monaco', monospace;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────
   Layout
───────────────────────────────────────────────────── */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ─────────────────────────────────────────────────────
   Site Header
───────────────────────────────────────────────────── */

.site-header {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

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

.site-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.site-location {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────
   Sections
───────────────────────────────────────────────────── */

.section {
  padding: 4rem 0;
}

.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ─────────────────────────────────────────────────────
   Bilingual Headings
───────────────────────────────────────────────────── */

hgroup {
  margin-bottom: 2rem;
}

hgroup h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

hgroup .heading-en {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────────────
   Intro / Portrait
───────────────────────────────────────────────────── */

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 3rem;
  align-items: start;
}

.intro-text hgroup {
  margin-bottom: 1.75rem;
}

.intro-portrait {
  margin: 0;
  padding-top: 5.5rem;
}

.intro-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────
   Paragraphs
───────────────────────────────────────────────────── */

p + p {
  margin-top: 1.15em;
}

/* ─────────────────────────────────────────────────────
   Links
───────────────────────────────────────────────────── */

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ─────────────────────────────────────────────────────
   Work List
───────────────────────────────────────────────────── */

.work-list {
  margin-top: 1.5rem;
  list-style: none;
}

.work-item + .work-item {
  margin-top: 1.5rem;
}

.work-item dt {
  font-weight: 600;
}

.work-item dd {
  margin-top: 0.2em;
}

/* ─────────────────────────────────────────────────────
   Offerings (Skills packages)
───────────────────────────────────────────────────── */

.offerings {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.offering {
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

.offering h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4em;
  line-height: 1.3;
}

/* ─────────────────────────────────────────────────────
   Examples
───────────────────────────────────────────────────── */

.examples-list {
  list-style: none;
  margin-top: 1.75rem;
}

.example + .example {
  margin-top: 2rem;
}

.example-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin-bottom: 0.35em;
  font-size: 1rem;
}

.example-name {
  font-weight: 600;
}

.example-sep {
  color: var(--muted);
}

.example-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.example-link:hover {
  text-decoration: underline;
  color: var(--text);
}

.more-note {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--muted);
}

/* ─────────────────────────────────────────────────────
   Contact
───────────────────────────────────────────────────── */

.contact-list {
  margin: 2rem 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

.contact-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.contact-item dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

.availability-note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ─────────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────────── */

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────
   Mobile
───────────────────────────────────────────────────── */

@media (max-width: 580px) {
  html {
    font-size: 17px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  hgroup h2 {
    font-size: 1.7rem;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .intro-portrait {
    order: -1;
    padding-top: 0;
  }

  .intro-portrait img {
    width: 120px;
    aspect-ratio: 1 / 1;
  }

  .contact-item {
    grid-template-columns: 5rem 1fr;
  }
}
