/* Change these colors to update the whole page. */
:root {
  --paper: #faf8f2;
  --ink: #172f38;
  --muted: #485c61;
  --accent: #aa482c;
  --line: #cbd2ca;
  --light: #f5f7ee;
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  width: min(1080px, 89%);
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 "Inter", "Segoe UI", sans-serif;
}
header, footer, nav, .project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header, footer { padding: 1.4rem 0; }
header { border-bottom: 1px solid var(--line); }
a { color: inherit; text-underline-offset: .25em; }
.brand { font-weight: 750; text-decoration: none; }
.brand span, h1 span { color: var(--accent); }
nav a { font-size: .9rem; }
.hero { padding: clamp(3rem, 7vw, 6rem) 0; }
.label { margin: 0; text-transform: uppercase; font-size: .76rem; letter-spacing: .14em; font-weight: 700; }
h1, h2, .intro { font-family: "Baskervville", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3.5rem, 9vw, 7rem); letter-spacing: -.065em; line-height: 1; margin: .65rem 0 1.4rem; }
.intro { max-width: 36ch; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.25; margin: 0; }
.bio { max-width: 66ch; color: var(--muted); }
.button { display: inline-block; background: var(--ink); color: white; padding: .65rem 1.1rem; border-radius: .35rem; text-decoration: none; }
.button span { margin-left: .6rem; }
article { background: var(--ink); color: var(--light); border-radius: .8rem; padding: clamp(1.5rem, 5vw, 3.5rem); }
.project-top { border-bottom: 1px solid #688087; padding-bottom: 1rem; }
.project-top span { font-size: .85rem; color: #cde2d8; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
article h2 { max-width: 22ch; margin: 1.5rem 0 1rem; }
article p { max-width: 65ch; }
summary { cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
#experience { padding: 2rem 0; }
dl div { display: grid; grid-template-columns: 1fr 1.3fr; padding: 1rem 0; border-top: 1px solid var(--line); }
dt { font-weight: 650; }
dd { color: var(--muted); margin: 0; }
footer { border-top: 1px solid var(--line); font-size: .9rem; }
:focus-visible { outline: 3px solid #d98c56; outline-offset: 4px; }
@media (max-width: 560px) {
  dl div { grid-template-columns: 1fr; }
  header { flex-wrap: wrap; }
}
