@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&display=swap");

:root {
  color-scheme: dark;
  --paper: #121212;
  --ink: #d5d5d5;
  --text: #c3c3c3;
  --line: #2d2d2d;
  --hover: #1c1c1c;
  --muted: #949494;
  --gutter: 4rem;
  font: 300 16px/1.5 "Cormorant Garamond", Georgia, serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #e9e9e9;
  --ink: #121212;
  --text: #161616;
  --line: #c7c7c7;
  --hover: #dedede;
  --muted: #555;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.25rem; }
body.menu-open { overflow: hidden; }
button, a { color: inherit; }
button { font: inherit; }
a { text-underline-offset: .16em; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

h1, h2, p { margin: 0; }
h1 { font-size: 3.5rem; font-weight: 300; line-height: 1.1; }
h2 { font-size: 1.75rem; font-weight: 400; line-height: 1.25; }
p { color: var(--text); }
p + p { margin-top: 12px; }

.skip {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: var(--gutter);
  padding: 8px 16px;
  background: var(--paper);
  transform: translateY(-160%);
}
.skip:focus { transform: translateY(0); }

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 8.5625rem;
  padding: 4rem var(--gutter) 2rem;
  color: var(--text);
}

.site-identity, .site-actions, .place, .clock {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-identity a, .site-menu a { text-decoration: none; }
.site-identity a:hover, .site-menu a:hover, .menu-toggle:hover { text-decoration: underline; }
.site-actions { flex-shrink: 0; }
.site-actions button { border: 0; background: none; cursor: pointer; padding: 0; }
.theme-toggle { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; }
.moon {
  display: block;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  border-radius: 50%;
  background: currentColor;
}
.moon::after {
  content: "";
  position: absolute;
  inset: -.8125rem -.5625rem .5625rem .5625rem;
  border-radius: 50%;
  background: var(--paper);
}
[data-theme="light"] .moon { opacity: .45; }
.menu-open .site-bar {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  background: var(--paper);
}

.site-menu {
  position: fixed;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-columns: 38% 1fr;
  align-content: start;
  padding: 9.375rem var(--gutter) 2.5rem;
  overflow: auto;
  background: var(--paper);
  animation: appear 180ms ease-out;
}
.site-menu h2 {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  text-transform: uppercase;
}
.site-menu a { display: block; width: fit-content; margin-bottom: 1.5625rem; }
.site-menu a[aria-current="page"]::after {
  content: "◇";
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: .3125rem;
}

.intro {
  padding: 2rem var(--gutter) 4rem;
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1.8125rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(1);
}
.intro h1 { max-width: 90%; }

.row { display: grid; border-bottom: 1px solid var(--line); }
.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thirds { grid-template-columns: minmax(0, 33fr) minmax(0, 33fr) minmax(0, 34fr); }
.row > * + * { border-left: 1px solid var(--line); }

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 29.5rem;
  padding: var(--gutter);
  transition: background-color 150ms ease;
}
#featured-work .tile { min-height: 31.1875rem; }
#featured-work h2, #volunteering h2 { line-height: 1.2; }
.linked:hover, .linked:focus-within { background: var(--hover); }
.tile-symbol {
  display: grid;
  place-items: center;
  width: var(--icon-width, 4.25rem);
  height: var(--icon-height, 4.25rem);
  margin-bottom: 1.625rem;
  flex: 0 0 auto;
}
.tile p, .wide p { margin: .75rem 0 0; }
.pictogram {
  border: 1px solid currentColor;
  border-radius: .75rem;
  font-family: Georgia, serif;
}
.maps::before { content: "⌖"; font-size: 1.75rem; }
.code::before { content: "‹/›"; font-size: 1.625rem; }
#featured-work .tile:first-child { --icon-width: 3rem; --icon-height: 3rem; }
#featured-work .tile:nth-child(2) { --icon-width: 2.25rem; --icon-height: 1.875rem; }
#community-work { --icon-height: 3rem; }
#training .tile:nth-child(-n+2) { --icon-width: 4rem; --icon-height: 4rem; }

.arrow {
  display: grid;
  place-items: center;
  min-width: 5.625rem;
  min-height: 2.9375rem;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 1.875rem;
  font-size: 1.5rem;
  line-height: normal;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.arrow:hover, .arrow:focus-visible { background: var(--ink); color: var(--paper); }
.tile p:has(+ .arrow) { margin-bottom: 2rem; }

.wide {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  padding: var(--gutter);
}
.wide h2, .wide p { max-width: 40rem; }
.wide .botanical { justify-self: center; width: min(100%, 15rem); aspect-ratio: 1; }
.botanical {
  background: url("assets/botanicals.png") var(--art-position, 0 0) / 200% 200% no-repeat;
  mix-blend-mode: screen;
  opacity: .84;
}
[data-theme="light"] .botanical { filter: invert(1); mix-blend-mode: multiply; }
.tree { --art-position: 100% 0; }
.vine { --art-position: 0 100%; }
.seedling { --art-position: 100% 100%; }
.interests .tile { min-height: 23rem; }
.thirds .tile { min-height: 20.5rem; }

.footer { grid-template-columns: minmax(0, 66fr) minmax(0, 34fr); }
.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 32.375rem;
  padding: var(--gutter);
  --icon-width: 3rem;
  --icon-height: 5rem;
}
.footer h2, .signoff { max-width: 40rem; font-size: 1.75rem; line-height: 1.25; }
.contact-link { margin-top: 1.25rem; font-size: 1rem; }
.signoff { margin-top: 2rem; color: var(--ink); }
.colophon { margin-top: auto; padding-top: 3.25rem; font-size: 1rem; }
.footer-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; filter: grayscale(1); }

.case-intro { padding: 64px var(--gutter) 88px; border-bottom: 1px solid var(--line); }
.case-intro p { margin-top: 20px; max-width: 640px; }
.case-intro .case-date { margin: 0 0 16px; color: var(--muted); font-size: 1.125rem; }
.case-panels .tile { min-height: 340px; }
.case-panels .botanical { width: 96px; height: 96px; margin: -12px 0 16px -12px; }
.next-project { min-height: 300px; }
.next-project .arrow { margin-top: 24px; }

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 1439px) {
  :root { font-size: 24px; }
}

@media (min-width: 2199px) {
  :root { font-size: 32px; }
}

@media (max-width: 767px) {
  .place, .clock { display: none; }
  .halves, .thirds { grid-template-columns: 1fr; }
  .halves > * + *, .thirds > * + * { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 450px) {
  :root { --gutter: 1.5rem; }
  .site-bar { min-height: 0; padding: 1.5rem var(--gutter) 0; }
  .site-identity, .site-actions { gap: .5rem; }
  .site-menu { grid-template-columns: 1fr 1.75fr; gap: 18px; padding-top: 6rem; }
  .site-menu h2 { margin-bottom: 17px; }
  .site-menu a { margin-bottom: 20px; }
  .intro { padding: var(--gutter); }
  h1 { font-size: 2.5rem; }
  .intro h1 { max-width: none; }
  .avatar { width: 4rem; height: 4rem; }
  .footer { grid-template-columns: 1fr; }
  .footer-photo { border-top: 1px solid var(--line); border-left: 0; }
  #featured-work h2, #volunteering h2 { line-height: 1.1; }
  .tile, #featured-work .tile, .interests .tile, .thirds .tile {
    min-height: auto;
  }
  .wide { grid-template-columns: 1fr; gap: 1.5rem; }
  .wide .botanical { grid-row: 1; justify-self: start; width: 5rem; }
  .footer-copy { min-height: 0; }
  .footer-photo { height: 500px; }
  .case-intro { padding-top: 42px; padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
