/* --- self-hosted fonts (see README for how to fetch the .woff2 files) ----- */
@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/josefin-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/josefin-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- design tokens ------------------------------------------------------- */
:root {
  --mint: #99cb9a;
  --coral: #ed7e79;
  --slate: #465967;
  --cream: #f6f2e8;

  --extrude:
    1px 1px 0 var(--slate), 2px 2px 0 var(--slate), 3px 3px 0 var(--slate),
    4px 4px 0 var(--slate);

  --font-display: "Josefin Sans", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;

  --measure: 30rem;
  --radius: 6px;
}

/* --- reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

body {
  background: var(--mint);
  color: var(--slate);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- layout -------------------------------------------------------------- */
.sheet {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 2rem 1.25rem 3rem;
}

/* --- typography ---------------------------------------------------------- */
.tagline,
.place,
.site-footer {
  font-family: var(--font-display);
  text-transform: uppercase;
}

.tagline {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-align: center;
  margin: 0 0 0.5rem;
}
.place {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-align: center;
  margin: 0;
  opacity: 0.75;
}

/* --- logo ---------------------------------------------------------------- */
.logo {
  width: 100%;
  margin: 0 auto 1.5rem;
}

/* --- deco rule, echoing the wedge marks in the logo ---------------------- */
.rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.75rem 0;
}
.rule::before,
.rule::after {
  content: "";
  height: 2px;
  background: var(--slate);
  flex: 1;
}
.rule__wedge {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left-color: var(--coral);
}

/* --- panels -------------------------------------------------------------- */
.panel {
  background: var(--cream);
  border: 2px solid var(--coral);
  border-radius: var(--radius);
  box-shadow: var(--extrude);
}

/* --- links --------------------------------------------------------------- */
.links {
  overflow: hidden;
  margin-bottom: 2rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgb(70 89 103 / 0.18);
}
.link:last-child {
  border-bottom: 0;
}
.link:hover,
.link:focus-visible {
  background: rgb(237 126 121 / 0.12);
}
.link:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: -2px;
}

.link__text {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.link__kind {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  display: block;
}
.link__value {
  font-weight: 500;
  font-size: 1.0625rem;
}
.link__chevron {
  color: var(--coral);
  font-size: 1.25rem;
  line-height: 1;
  flex: none;
}

/* --- portrait ------------------------------------------------------------ */
.portrait {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portrait img {
  border-radius: var(--radius);
}

/* --- footer -------------------------------------------------------------- */
.site-footer {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin-top: 2.5rem;
  opacity: 0.7;
}

/* --- motion -------------------------------------------------------------- */
.logo,
.tagline,
.place,
.links,
.portrait,
.site-footer {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.tagline {
  animation-delay: 0.08s;
}
.place {
  animation-delay: 0.12s;
}
.links {
  animation-delay: 0.18s;
}
.portrait {
  animation-delay: 0.24s;
}
.site-footer {
  animation-delay: 0.3s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
