@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #262238;
  --paper: #f5f1fa;
  --lilac: #baa0ed;
  --muted: #595166;
  --dark-line: #50495e;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
  --wave-height: clamp(28px, 3.7vw, 55px);
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
p {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
::selection {
  background: var(--lilac);
  color: var(--ink);
}
.wrap {
  width: min(1248px, calc(100% - clamp(52px, 11.1vw, 182px)));
  margin-inline: auto;
}
.skip {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-170%);
}
.skip:focus {
  transform: translateY(0);
}
.site-header,
.intro,
.site-footer {
  background: var(--ink);
  color: var(--paper);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 23px;
  gap: 25px;
  border-bottom: 1px solid var(--dark-line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand-name {
  display: grid;
  gap: 3px;
}
.brand-name span {
  font: 400 28px/0.95 var(--display);
  letter-spacing: -0.025em;
}
.brand-name small {
  font: 500 9px/1 var(--body);
  letter-spacing: 0.37em;
  text-transform: uppercase;
}
.header-home {
  font-size: 13px;
  padding-block: 8px;
}
.header-home:hover,
.legal-links a:hover {
  color: var(--lilac);
}
.intro .wrap {
  padding-block: clamp(56px, 6.7vw, 104px) calc(clamp(58px, 6.5vw, 94px) + var(--wave-height));
}
.updated {
  display: inline-block;
  color: #e9dff9;
  background: #393349;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  padding: 9px 19px 9px 11px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.055em;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
}
h1 {
  margin-block: 24px 20px;
  font-size: clamp(76px, 8.6vw, 122px);
  line-height: 0.95;
  letter-spacing: -0.043em;
}
h1 i {
  color: var(--lilac);
  font-weight: 400;
}
.intro p:last-child {
  max-width: 55ch;
  color: #e2dce9;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}
.wave {
  position: relative;
  background-color: var(--section-bg);
}
.wave::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: calc(var(--wave-height) + 1px);
  bottom: calc(100% - 1px);
  left: 0;
  background-color: var(--section-bg);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C270 -16 442 20 702 36S1160 70 1440 24V60H0Z'/%3E%3C/svg%3E")
    no-repeat center/100% 100%;
}
.reading {
  --section-bg: var(--paper);
}
.reading-layout {
  display: grid;
  align-items: start;
  justify-content: start;
  gap: clamp(48px, 8vw, 118px);
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 710px);
  padding-block: clamp(46px, 5vw, 74px) calc(clamp(60px, 6vw, 90px) + var(--wave-height));
}
.contents {
  position: sticky;
  top: 30px;
}
.contents h2 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.15;
}
.contents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contents li + li {
  margin-top: 10px;
}
.contents a {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration-color: #aaa0b7;
}
.contents a:hover,
.copy a:hover {
  color: #493664;
  text-decoration-thickness: 2px;
}
.copy {
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.72;
  overflow-wrap: break-word;
}
.copy h2 {
  margin: 1.05em 0 0.31em;
  font-size: clamp(35px, 3.5vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  scroll-margin-top: 24px;
}
.copy h2:first-child {
  margin-top: 0;
}
.copy p + p,
.copy address + p {
  margin-top: 0.8em;
}
.copy address {
  margin-top: 0.8em;
  font-style: normal;
}
.site-footer {
  --section-bg: var(--ink);
  padding-block: 35px 52px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.footer-meta {
  text-align: right;
  color: #ddd6e8;
  font-size: 11px;
  line-height: 1.5;
}
.legal-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 4px;
  margin-top: 8px;
}
.legal-links a {
  display: inline-block;
  padding-block: 4px;
  color: var(--paper);
}
@media (max-width: 860px) {
  .wrap {
    width: calc(100% - 54px);
  }
  .reading-layout {
    gap: 38px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .head-inner {
    gap: 12px;
    padding-block: 16px;
  }
  .brand {
    gap: 7px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand-name span {
    font-size: 22px;
  }
  .brand-name small {
    font-size: 8px;
  }
  .header-home {
    font-size: 12px;
  }
  .intro .wrap {
    padding-block: 48px calc(45px + var(--wave-height));
  }
  h1 {
    font-size: clamp(60px, 13vw, 82px);
  }
  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }
  .contents {
    position: static;
  }
  .contents ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
  }
  .contents li + li {
    margin-top: 0;
  }
  .copy {
    line-height: 1.63;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-meta {
    text-align: left;
  }
  .legal-links {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
