@font-face {
  font-family: "Nuna Display";
  src: url("assets/nuna-display.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: #0f0e0d;
  --text: #faf8f4;
  --muted: #c5c2bd;
  --blue: #b5d2d8;
  --line: #5a686a;
  --hairline: #343634;
  --display: "Nuna Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  line-height: 1.55;
}

.bio {
  width: min(100%, 34rem);
  margin-inline: auto;
  padding-bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
}

.content {
  width: min(calc(100% - 2.75rem), 29rem);
  margin-inline: auto;
}

.cover {
  position: relative;
  height: clamp(14.25rem, 59vw, 20.75rem);
  overflow: hidden;
  margin: 0;
  background: #232525;
}

.cover img,
.terrace img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover img {
  object-position: 50% 43%;
}

.cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 31%, rgb(15 14 13 / 0.26) 69%, var(--page) 100%);
  content: "";
}

.identity {
  position: relative;
  margin-top: -1.65rem;
  text-align: center;
}

.location-label {
  margin: 0 0 0.42rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
}

h1 {
  font-size: clamp(2.5rem, 10.4vw, 3.45rem);
  letter-spacing: -0.025em;
}

.introduction {
  max-width: 34ch;
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  margin-top: 1.4rem;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  gap: 0.6rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #191b1b;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.action:hover {
  border-color: var(--blue);
  background: #243034;
}

.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #142125;
}

.primary:hover {
  border-color: #d2e8ec;
  background: #d2e8ec;
}

.action-icon {
  flex: none;
}

a:focus-visible,
summary:focus-visible,
iframe:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.terrace {
  position: relative;
  height: clamp(13rem, 60vw, 20rem);
  overflow: hidden;
  margin-block: 2rem 1.85rem;
  border-radius: 1.55rem;
  background: #262420;
}

.terrace img {
  object-position: 51% 60%;
}

.terrace figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 1rem 0.96rem;
  background: linear-gradient(transparent, rgb(13 12 11 / 0.76));
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.visit {
  text-align: center;
}

h2 {
  font-size: 2.75rem;
}

address {
  margin: 0.65rem 0 1.18rem;
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
}

.map {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 1.35rem;
  background: #1b1c1b;
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(14rem, 61vw, 18rem);
  border: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--blue);
  font-size: 0.9375rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.text-link:hover {
  color: var(--text);
}

.visit > .text-link {
  margin-top: 0.27rem;
}

details {
  margin-top: 0.5rem;
  border-block: 1px solid var(--hairline);
  text-align: start;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding-inline: 0.1rem;
  color: var(--text);
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  width: 0.8rem;
  height: 0.8rem;
  flex: none;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 1px 100% no-repeat;
  content: "";
}

details[open] summary::after {
  background-size: 100% 1px, 1px 0;
}

.visit-detail {
  padding: 0.3rem 0.1rem 0.5rem;
}

dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

dl div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 0.6rem;
}

dd {
  margin: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.65rem;
  padding-top: 0.65rem;
}

@media (min-width: 40rem) {
  .bio {
    padding-top: 1.5rem;
  }

  .cover {
    border-radius: 1.65rem 1.65rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action {
    transition: none;
  }
}
