@layer site {
  :root {
    min-height: 100%;
  }

  .site {
    --sd-canvas: #e8edf3;
    --sd-canvas-ink: #27374a;
    --sd-surface: #f4f6f8;
    --sd-border-strong: #4d5c6c;
    --sd-bar-top: #a9c4df;
    --sd-bar-mid: #7899bd;
    --sd-bar-bottom: #4d7098;
    --sd-bar-border: #3c5c7f;
    --sd-bar-ink: #ffffff;
    min-height: 100vh;
    background-color: var(--sd-canvas);
    background-image: repeating-linear-gradient(
      0deg,
      transparent 0 23px,
      rgba(61, 83, 108, 0.12) 23px 24px
    );
  }

  .page {
    display: grid;
    width: min(100% - 2rem, 27rem);
    min-height: 100vh;
    margin-inline: auto;
    padding: clamp(3rem, 11vh, 7rem) 0 2rem;
    align-content: start;
  }

  h1 {
    display: flex;
    align-items: baseline;
    gap: 0.28em;
    margin: 0 0 0.7rem;
    color: #263c56;
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.085em;
    line-height: 1;
    text-shadow: 0 1px 0 #fff, 0 0 18px rgba(65, 131, 199, 0.22);
  }

  .title-japanese {
    padding: 0.08em 0.14em 0.1em 0.08em;
    border: 1px solid #1d568e;
    color: #fff;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 1.16em;
    font-weight: 900;
    letter-spacing: -0.1em;
    line-height: 0.9;
    text-shadow: 0 -1px 0 #174775;
    background: #3477bd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }

  .construction-note {
    margin: 0 0 0.85rem;
    color: #596a7d;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .construction-note strong {
    color: #314a64;
  }

  .construction-note span {
    display: block;
  }

  .construction-note span + span {
    color: #346a9e;
    font-weight: 700;
  }

  .guestbook {
    border-radius: 0.55rem;
    box-shadow: 0 1px 0 #fff, 0 10px 30px rgba(35, 52, 72, 0.2);
  }

  .guestbook-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    text-align: center;
  }

  .guestbook-bar .sd-navbar__title {
    margin: 0;
    font-size: 0.92rem;
    text-shadow: 0 -1px 0 rgba(24, 48, 77, 0.72);
  }

  .guestbook-window {
    height: 32rem;
    overflow: hidden;
    background: #f7f9fb;
  }

  .guestbook-frame {
    display: block;
    width: 100%;
    height: 36.6rem;
    border: 0;
    background: #f7f9fb;
    /* Atabook is hosted elsewhere, so its own header is cropped here. */
    transform: translateY(-8rem);
    transform-origin: top left;
    zoom: 1.12;
  }

  @media (max-width: 27rem) {
    .page {
      width: min(100% - 1rem, 27rem);
      padding-top: 2.25rem;
    }

    .guestbook-window {
      height: min(32rem, 70vh);
    }

    .guestbook-frame {
      height: 36.6rem;
    }
  }
}
