@font-face {
  font-family: "EB Garamond";
  src: url("assets/eb-garamond-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #101212;
  --paper: #f7f7f4;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.5 "EB Garamond", Garamond, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid #18616b;
  outline-offset: 5px;
}

.hero {
  --hero-gutter: clamp(1.25rem, 4vw, 2rem);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  color: #000;
  background: #e9e7dc;
}

.hero-image, .hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero::before {
  z-index: -1;
  content: "";
  background: rgb(255 255 255 / 50%);
}

.hero-header, .hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--hero-gutter);
}

.hero-header { padding-top: 1.625rem; }

.hero-footer {
  flex-wrap: wrap;
  gap: 0 1rem;
  padding-bottom: .75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(.375rem, 2vw, 1.5rem);
  margin-inline-start: auto;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
}

.hero-content {
  display: grid;
  align-items: center;
  container-type: inline-size;
  padding: 1.5rem var(--hero-gutter);
}

.hero h1 {
  font-size: 9.5vw;
  font-size: min(10cqi, 32svh);
  font-weight: 400;
  line-height: .91;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.hero-line { display: block; }

.hero-footer a, .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #242424;
  font-size: 1rem;
}

.email { text-decoration: none; }
.email:hover, .text-button { text-decoration: underline; }

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  text-underline-offset: .22em;
  cursor: pointer;
}

dialog {
  --dialog-line: #414543;
  --dialog-text: #dddeda;
  color-scheme: dark;
  width: min(32rem, calc(100% - 2rem));
  max-height: min(80vh, 42rem);
  padding: 0;
  border: 1px solid #545654;
  border-radius: .5rem;
  color: #f3f3ef;
  background: #141515;
  box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 35%);
  font-size: 1.125rem;
  line-height: 1.4;
}

dialog::backdrop { background: rgb(0 0 0 / 75%); }
html:has(dialog[open]) { overflow: hidden; }

.dialog-content {
  position: relative;
  padding: 1.5rem;
}

.dialog-content h2 {
  padding-right: 2.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.app-list, .portfolio-list {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.portfolio-intro {
  margin-top: .5rem;
  color: var(--dialog-text);
}

.portfolio-list li {
  border-top: 1px solid var(--dialog-line);
}

.portfolio-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding-block: .75rem;
  font-weight: 600;
  text-decoration: none;
}

.portfolio-list a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.portfolio-list span {
  color: var(--dialog-text);
  font-size: 1rem;
  font-weight: 400;
}

.app-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .875rem;
  padding-block: .875rem .375rem;
  border-top: 1px solid var(--dialog-line);
}

.app-icon {
  display: block;
  border-radius: 22%;
}

.app-list h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.app-list p {
  margin-top: .125rem;
  color: var(--dialog-text);
}

.dialog-footer a, .app-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1rem;
  text-underline-offset: .25em;
}

.dialog-footer a:hover, .app-link:hover { color: #b3d5d8; }

.dialog-footer {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  border-top: 1px solid var(--dialog-line);
  margin-bottom: -.5rem;
  font-weight: 600;
}

.dialog-footer a:only-child { flex: 1; }

.dialog-content h2 + .dialog-footer { margin-top: 1rem; }

.policy-content h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.policy-content p {
  margin-top: .45rem;
  color: var(--dialog-text);
}

.policy-content h2 + p,
.policy-content h2 + p + p { margin-top: 1rem; }

.close-dialog {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .25rem;
  color: inherit;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.close-dialog:hover { background: rgb(255 255 255 / 10%); }
dialog :focus-visible { outline-color: #b3d5d8; }

@media (max-width: 37.5rem) {
  .hero h1 {
    font-size: 19vw;
    font-size: min(21cqi, 16svh);
  }

  .hero-line > span { display: block; }
}
