@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font: 400 100%/1.55 "DM Sans", Arial, sans-serif;
  background: #fff;
  color: #191919;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 48px, 574px); margin: clamp(56px, 14vh, 136px) auto 64px; }
h1, h2, p { margin: 0; }
h1 {
  font: 400 clamp(35px, 5.9vw, 46px)/1.12 "Iowan Old Style", Baskerville, "Times New Roman", serif;
  letter-spacing: -.045em;
}
header p { max-width: 48ch; margin-top: 16px; color: #4a4a4a; font-size: 16px; text-wrap: pretty; }
section { margin-top: 44px; }
h2 { color: #626262; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.project { border-bottom: 1px solid #e6e6e6; }
summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
summary::-webkit-details-marker { display: none; }
.project > summary {
  min-height: 58px; display: grid; grid-template-columns: 130px 1fr 12px;
  gap: 12px; align-items: baseline; padding: 17px 0;
}
.project > summary::after { content: "+"; align-self: center; color: #676767; font: 400 15px/1 Arial, sans-serif; text-align: center; }
.project[open] > summary::after { content: "−"; }
.project-name { font-weight: 630; font-size: 16px; letter-spacing: -.025em; }
.brief { color: #595959; font-size: 14px; }
.note { padding: 1px 24px 20px 0; color: #454545; font-size: 15px; max-width: 55ch; }
.note > .links, .sample { margin-top: 8px; }
.links, footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; }
a, .sample summary, .sample button { color: #292929; text-decoration: underline; text-decoration-color: #a9a9a9; text-underline-offset: .24em; }
.links a, footer a, .sample summary, .sample button { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
a:hover, .sample summary:hover, .sample button:hover { text-decoration-color: #111; }
summary:hover .project-name { text-decoration: underline; text-underline-offset: .23em; }
:focus-visible { outline: 2px solid #333; outline-offset: 4px; border-radius: 1px; }
.links, footer, .sample { font-size: 14px; }
.sample button { border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }
.sample [hidden] { display: none; }
.sample-content { padding-left: 15px; border-left: 1px solid #ccc; }
.sample-content [data-status]:empty { display: none; }
footer { margin-top: 27px; }
@media(max-width: 560px) {
  main { margin-top: 56px; }
  section { margin-top: 36px; }
  .project > summary { grid-template-columns: 1fr 16px; gap: 2px 12px; padding: 13px 0; }
  .brief { grid-column: 1; }
  .project > summary::after { grid-column: 2; grid-row: 1 / 3; }
}
@media(prefers-reduced-motion: no-preference) {
  .project[open] > .note { animation: reveal .14s ease-out; }
  @keyframes reveal { from { opacity: 0; transform: translateY(-2px); } }
}
