:root {
  color-scheme: light;
  --ink: #221f1a;
  --muted: #6f655a;
  --faint: #8b8175;
  --line: #e7e1d6;
  --hairline: #efeae0;
  --paper: #fffdf9;
  --soft: #f7f3ec;
  --accent: #9a7b4f;
  --accent-ink: #7c6038;
  --link: #7c6038;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

.page {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  box-shadow: 0 30px 90px rgba(34, 31, 26, 0.10);
}

.site-header,
.site-footer {
  padding: 32px clamp(22px, 5vw, 60px);
}

.site-header {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand {
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 5px var(--soft);
}

.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--accent-ink);
  background: var(--soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

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

main {
  padding: 40px clamp(22px, 5vw, 60px) 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 320px);
  gap: 44px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
}

.hero h2,
.section h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Refined accent rule under each major heading */
.hero h2::after,
.section h2::after,
.portfolio-intro h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 12px;
  background: var(--accent);
  border-radius: 2px;
}

.hero p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #2f2a23;
}

/* Elegant, boxless contact block */
.contact-card {
  padding: 4px 0 0 24px;
  border-left: 2px solid var(--line);
}

.contact-heading {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: grid;
  gap: 2px;
}

.contact-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-value {
  user-select: all;
  font-size: 1.08rem;
  font-weight: 500;
  word-break: break-word;
}

.contact-list a {
  font-size: 1.08rem;
  font-weight: 500;
}

.copy-link {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease;
}

.copy-link:hover {
  border-color: var(--accent);
}

.section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skills li {
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.job {
  padding: 26px 0;
}

.job + .job {
  border-top: 1px solid var(--hairline);
}

.job h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}

.job .role {
  margin: 4px 0 12px;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.job ul,
.simple-list {
  margin: 0;
  padding-left: 22px;
}

.job li,
.simple-list li {
  padding-left: 4px;
}

.job li::marker,
.simple-list li::marker {
  color: var(--accent);
}

.job li + li,
.simple-list li + li {
  margin-top: 8px;
}

.portfolio-intro {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.portfolio-intro h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
}

.portfolio-intro p {
  max-width: 720px;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
}

.portfolio-intro .button {
  flex: 0 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.portfolio-item:hover {
  box-shadow: 0 18px 44px rgba(34, 31, 26, 0.10);
  transform: translateY(-2px);
}

.portfolio-shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}

.portfolio-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-copy {
  padding: 22px;
}

.portfolio-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.portfolio-copy h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
}

.portfolio-title-row h3 {
  margin: 0;
}

.portfolio-url {
  min-height: 34px;
  padding: 5px 14px;
  font-size: 0.85rem;
}

.portfolio-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.portfolio-tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }

  .site-header,
  .hero,
  .portfolio-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .hero {
    gap: 32px;
  }

  .contact-card {
    padding-left: 20px;
  }

  .portfolio-intro {
    display: grid;
  }

  .portfolio-intro .button {
    justify-self: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

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

@media print {
  body {
    background: #fff;
    font-size: 12pt;
  }

  .page {
    box-shadow: none;
  }

  .nav,
  .copy-link,
  .site-footer {
    display: none;
  }

  .portfolio-item:hover {
    box-shadow: none;
    transform: none;
  }
}
