:root {
  --paper: #fffdfa;
  --gold-1: #a97216;
  --gold-2: #d79f31;
  --gold-3: #f4d987;
  --gold-4: #fff4c9;
  --gold-5: #7f5210;
  --ink: #24170d;
  --rose-1: #ecdfe0;
  --rose-2: #d9c6c8;
  --title-name-size: clamp(1.35rem, 3.3vw, 3.2rem);
  --title-eyebrow-size: clamp(0.68rem, 1.2vw, 1rem);
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("/fonts/great-vibes-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Times Local";
  src: url("/fonts/times.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Times Local";
  src: url("/fonts/times-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Times Local", "Times New Roman", Times, serif;
  background: #ffffff;
}

a {
  color: inherit;
}

a,
button {
  cursor: pointer;
}

.page-shell {
  width: min(700px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.hono-page,
.hono-page a,
.hono-page button {
  cursor: url("/images/ui/cursor.png"), auto;
}

.landing-frame {
  min-height: 700px;
  padding: 0px 14px 18px;
  border: 8px double var(--gold-3);
  background: #ffffff;
  /*box-shadow:
    0 22px 48px rgba(72, 47, 11, 0.12),
    inset 0 0 0 2px rgba(255, 247, 219, 0.85);*/
}

.title-plaque {
  width: min(100%, 340px);
  aspect-ratio: 600 / 201;
  display: grid;
  align-content: center;
  margin: 0 auto 4px;
  padding: 20px 20px 16px;
  text-align: center;
  color: #2b1704;
  background: url("/images/hero/header.png") center / contain no-repeat;
}

.title-plaque .eyebrow {
  margin: 0;
  font-size: var(--title-eyebrow-size);
  line-height: 1.05;
}

.title-plaque h1 {
  margin: 7px 0 0;
  font-size: var(--title-name-size);
  line-height: 1;
  font-family: "Great Vibes", "Times New Roman", cursive;
  font-weight: 400;
}

.hero-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: center;
}

.side-nav {
  display: grid;
  gap: 18px;
}

.medallion-link {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  padding: 16px 0px;
  font-family: "Times Local", "Times New Roman", Times, serif;
  text-align: center;
  text-decoration: none;
  font-size: clamp(0.92rem, 1.7vw, 1.32rem);
  line-height: 0.92;
  font-weight: 700;
  border-radius: 50%;
  background: url("/images/ui/rings.png") center / contain no-repeat;
  /*box-shadow: 0 8px 16px rgba(103, 72, 47, 0.08);*/
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.medallion-label {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.medallion-link:hover,
.medallion-link:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 12px 20px rgba(103, 72, 47, 0.12),
    inset 0 0 20px rgba(233, 219, 221, 0.85);
}

.hero-panel {
  min-width: 0;
  width: 100%;
}

.hero-image-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 8px;
  overflow: hidden;
  border: 4px solid var(--gold-1);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-4) 44%, #cc8b22 100%);
  box-shadow:
    0 12px 24px rgba(86, 55, 9, 0.18),
    inset 0 0 0 2px rgba(255, 248, 225, 0.8);
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 244, 214, 0.76);
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-image.is-loaded {
  opacity: 1;
}

.hero-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  text-align: center;
  color: #5c3a10;
  background:
    linear-gradient(180deg, rgba(173, 214, 247, 0.75), rgba(255, 246, 229, 0.98)),
    radial-gradient(circle at bottom, rgba(110, 145, 89, 0.26), transparent 42%);
  border: 1px solid rgba(150, 112, 32, 0.28);
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  line-height: 1.15;
}

.hero-image.is-loaded + .hero-image-placeholder {
  opacity: 0;
  pointer-events: none;
}

.hero-image-placeholder strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
}

.tagline {
  margin: 14px 0 10px;
  text-align: center;
  font-family: "Great Vibes", "Times New Roman", cursive;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 0.98;
}

.welcome-row {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.info-frame {
  min-height: 700px;
  padding: 28px 28px 36px;
  border: 8px double var(--gold-3);
  background: #ffffff;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: "Times Local", "Times New Roman", Times, serif;
  font-size: 1rem;
  color: #0000ee;
  text-decoration: underline;
}

.back-link:visited {
  color: #551a8b;
}

.info-header {
  margin-bottom: 24px;
  text-align: left;
}

.info-eyebrow {
  margin: 0 0 6px;
  font-size: 1.0rem;
  font-weight: 700;
}

/*.info-header h1 {
  margin: 0;
  font-family: "Great Vibes", "Times New Roman", cursive;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
}*/

.info-body {
  /*width: min(100%, 520px);*/
  margin: 0 auto;
  font-size: 1.0rem;
  /*line-height: 1.45;
  text-align: center;*/
}

.info-body p {
  margin: 0 0 20px;
}

.info-body fieldset {
  margin: 0 0 20px;
}

.history-body {
  text-align: left;
}

.history-entry {
  margin-bottom: 16px;
}

.history-entry:last-child {
  margin-bottom: 0;
}

.info-body a {
  color: #0000ee;
  text-decoration: underline;
}

.info-body a:visited {
  color: #551a8b;
}

.hidden-field {
  display: none;
}

.info-body input,
.info-body textarea,
.info-body select {
  border: 1px solid #000;
  font-size: 1rem;
}

.button--netscape {
  align-items: center;
  background: #ccc;
  border-color: #eee #111 #111 #eee;
  border-radius: 0;
  border-style: solid;
  border-width: 2px;
  display: inline-flex;
  font-family: "Times Local", "Times New Roman", Times, serif;
  font-weight: 700;
  min-height: 31px;
  min-width: 88px;
  padding: 2px 10px 2px 10px;
  position: relative;
  white-space: nowrap;
  font-size: 16px;
  color: #000;
}

.button--netscape:active {
  border-color: #111 transparent transparent #111;
  padding: 4px 2px 0 4px;
}

.button--netscape[hidden] {
  display: none;
}

.content-image {
  margin: 0 0 24px;
}

.content-image-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.content-image-grid .content-image {
  margin: 0;
}

.content-image img {
  margin: 0 auto;
  max-height: 320px;
  max-width: 100%;
}

.hono-primary-image img {
  max-height: 400px;
}

.guestbook-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  text-align: center;
  background: transparent;
}

.guestbook-link {
  margin: 8px 0 0;
  font-family: "Times Local", "Times New Roman", Times, serif;
  font-size: clamp(1rem, 2.1vw, 1.6rem);
  line-height: 0.95;
  font-weight: 700;
  color: #0000ee;
  text-decoration: underline;
}

.guestbook-link:hover,
.guestbook-link:focus-visible {
  color: #0000ee;
}

.audio-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 82px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  transform: translateY(-2px);
}

.audio-toggle img {
  display: block;
  width: 100%;
  height: auto;
}

.audio-toggle[data-state="playing"] img {
  filter: saturate(1.1);
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff8e4;
  background: radial-gradient(circle at 35% 30%, #f5d37b, var(--gold-1));
  border: 4px solid rgba(155, 103, 20, 0.8);
  box-shadow: 0 10px 18px rgba(80, 52, 12, 0.18);
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.portrait img.is-loaded {
  opacity: 1;
}

.portrait img.is-loaded + span {
  opacity: 0;
}

.portrait-sara {
  background: radial-gradient(circle at 35% 30%, #f7e1a2, #b57d22);
}

.portrait-tobias {
  background: radial-gradient(circle at 35% 30%, #ffe8b2, #976318);
}

.guestbook-icon {
  display: block;
  width: 92px;
  margin: 0 auto;
}

.guestbook-icon img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {

  .hero-image-frame {
    aspect-ratio: 1 / 1.2;
  }
  .page-shell {
    width: min(100vw - 8px, 700px);
    padding-top: 8px;
  }

  .landing-frame {
    min-height: 0;
    padding: 6px 4px 16px;
    border-width: 6px;
  }

  .info-frame {
    min-height: 0;
    padding: 18px 14px 24px;
    border-width: 6px;
  }

  .info-header {
    margin-bottom: 18px;
  }

  /*.info-eyebrow {
    font-size: 0.95rem;
  }*/

  .info-header h1 {
    font-size: 1.0rem;
    font-weight: 700;
  }

  .info-body {
    width: 100%;
    font-size: 1.0rem;
  }

  .info-body input,
  .info-body textarea,
  .info-body select,
  .info-body button {
    font-size: 16px;
  }

  .title-plaque {
    width: min(100%, 300px);
    margin-bottom: 8px;
    padding: 18px 14px 14px;
  }

  .title-plaque .eyebrow {
    font-size: 1rem;
  }

  .title-plaque h1 {
    margin-top: 6px;
    font-size: 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 75px minmax(0, 1fr) 75px;
    gap: 6px;
  }

  .side-nav {
    gap: 2px;
  }

  .medallion-link {
    width: 75px;
    height: 75px;
    padding: 8px 2px;
    font-size: 0.92rem;
    line-height: 0.88;
  }

  .welcome-row {
    margin-top: 14px;
  }

  .guestbook-link {
    font-size: 1.2rem;
  }

  .tagline {
    margin-top: 18px;
  }

  .audio-toggle {
    right: 10px;
    bottom: 10px;
    width: 70px;
  }
}
