:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: #fff;
}

.page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 2rem;
}

.content {
  width: min(100%, calc(49.375rem + clamp(1.5rem, 3vw, 3rem)));
}

.notice {
  display: grid;
  grid-template-columns: minmax(0, 36rem) 13.375rem;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  width: 100%;
}

.article {
  grid-column: 1;
  grid-row: 1;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

a,
a:visited {
  color: #1559b7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 a,
h1 a:visited {
  color: #000;
}

.notice p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: #000;
}

.notice p + p {
  margin: 1.5rem 0 0;
}

.profile {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

.portrait-block {
  width: 100%;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
}

.contact {
  width: 100%;
}

.contact h2 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.contact h2 ~ p {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.contact h2 ~ p:last-child {
  margin-top: 1rem;
  color: #777;
}

.contact-jump {
  display: none;
}

@media (max-width: 55rem) {
  .content {
    width: min(100%, 36rem);
  }

  .notice {
    display: flex;
    flex-direction: column;
  }

  .profile {
    display: contents;
  }

  .portrait-block {
    order: 1;
    width: min(100%, 13.375rem);
    margin: 0 auto 2rem;
  }

  .article {
    order: 2;
  }

  .contact {
    order: 3;
    margin-top: 2rem;
  }

  .contact h2 {
    margin: revert;
    font-size: revert;
    font-weight: revert;
    line-height: revert;
  }

  .contact h2 ~ p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
  }

  .contact h2 ~ p + p,
  .contact h2 ~ p:last-child {
    margin-top: 1.5rem;
  }

  .contact-jump {
    display: block;
  }
}
