/* ==========================================================================
   Anna Kishida Thomas: site styles
   Palette: dark blue (navy) + dark green. Change colors here only.
   ========================================================================== */

:root {
  --navy: #0e2a47;
  --navy-deep: #0a1f36;
  --green: #1e5143;
  --green-soft: #e7efeb;
  --ink: #1b2330;
  --muted: #5b6574;
  --line: #dfe4e2;
  --bg: #fbfbf9;
  --card: #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-width: 920px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--navy), var(--green)) 1;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / navigation ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

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

.site-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-name:hover {
  color: var(--navy);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--green);
}

/* ---------- Layout ---------- */

main {
  flex: 1;
}

main.container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

sup,
sub {
  line-height: 0;
}

section + section {
  margin-top: 3.5rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.55rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 1.2rem;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 44rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.5rem;
}

/* ---------- Hero (home page) ---------- */

.hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.75rem;
  align-items: start;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  box-shadow: 0 0 0 2px var(--green), 0 10px 30px rgba(14, 42, 71, 0.15);
}

.hero .role {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-text p {
  max-width: 40rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

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

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

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

/* ---------- Tags / chips ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tags li {
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 500;
}

/* ---------- Timeline-style entries (education, experience) ---------- */

.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.entry:last-child {
  border-bottom: none;
}

.entry .when {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: right;
}

.entry .where {
  color: var(--green);
  font-weight: 500;
  margin: 0.15rem 0 0.6rem;
}

.entry .body {
  grid-column: 1 / -1;
}

.entry ul {
  margin: 0;
  padding-left: 1.2rem;
}

.entry li + li {
  margin-top: 0.3rem;
}

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

.plain-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.plain-list li:last-child {
  border-bottom: none;
}

.plain-list .when {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.25rem;
}

/* ---------- Two-column definition grid (skills) ---------- */

.def-grid {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.9rem 1.5rem;
  margin: 0;
}

.def-grid dt {
  font-weight: 600;
  color: var(--navy);
}

.def-grid dd {
  margin: 0;
}

/* ---------- Research projects ---------- */

.theme {
  margin-top: 3.5rem;
}

.theme-header {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.theme-number {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--green);
  line-height: 1;
}

.theme-header h2 {
  border: none;
  padding: 0;
  margin: 0;
}

.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 2rem;
}

.project h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.citation {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.citation em {
  color: var(--ink);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.link-row a {
  text-decoration: none;
}

.link-row a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--green-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.figure {
  margin: 1.75rem 0;
}

.figure a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.figure figcaption {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 0.7rem;
  line-height: 1.5;
}

.project h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1.75rem 0 0.6rem;
}

.project ul {
  padding-left: 1.2rem;
  margin: 0;
}

.project li + li {
  margin-top: 0.45rem;
}

.project ul.tags {
  padding-left: 0;
}

.project .tags li + li {
  margin-top: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #c9d3de;
  font-size: 0.9rem;
  padding: 1.75rem 0;
}

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

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #a8d5c4;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  main.container {
    padding-top: 2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-photo {
    width: 160px;
    height: 160px;
  }

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

  .entry .when {
    text-align: left;
    margin-bottom: 0.25rem;
    order: -1;
  }

  .def-grid {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .def-grid dd {
    margin-bottom: 0.8rem;
  }

  .project {
    padding: 1.35rem;
  }

  .plain-list li {
    flex-direction: column;
    gap: 0;
  }
}
