:root {
  --bg: #f6f4ee;
  --fg: #1b1b1a;
  --muted: #6b6a66;
  --rule: #d9d6cd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --fg: #e9e7e1;
    --muted: #9a9890;
    --rule: #3a3936;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.6;
}

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 24vh 1.5rem 4rem;
}

h1 {
  margin: 0 0 3.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

.en {
  font-size: 1.6rem;
  line-height: 1.4;
}

.ja {
  margin-top: 1.25rem;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.05rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.contact {
  margin-top: 4rem;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--rule);
}

a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}

footer {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 30rem) {
  main {
    padding-top: 18vh;
  }

  .en {
    font-size: 1.4rem;
  }
}
