/* Yonaga. Carries over the look approved on Google Sites: the dusk-sky hero
   with a centered white headline, Lora throughout, blue-gray headings
   (#37474F), near-black body text, a light gray footer. Light only, like
   angulus.pro and baybound.app. */

:root {
  color-scheme: light;
  --ink:        #212121;
  --ink-soft:   #555b60;
  --ink-faint:  #80868b;
  --heading:    #37474f;
  --paper:      #ffffff;
  --surface:    #f2f2f2;
  --rule:       #e3e5e6;
  --accent:     #37474f;
  --accent-ink: #263238;
  --on-accent:  #ffffff;

  --measure: 38rem;
  --column: 46rem;
  --wide: 70rem;
  --gutter: clamp(1rem, 5vw, 3rem);
  --step: clamp(3.5rem, 8vw, 6rem);

  --serif: Lora, "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html:lang(ja) body { line-height: 1.9; }

img { max-width: 100%; height: auto; }

a { color: var(--heading); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid #7db6b1; outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter); top: .5rem; z-index: 10;
  background: var(--paper); padding: .5rem .75rem; border: 1px solid var(--rule);
}

/* ---------- chrome ---------- */

.site-head {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: var(--wide); margin-inline: auto;
}
.wordmark {
  font: 500 1.25rem/1 var(--serif);
  color: var(--heading); text-decoration: none;
}
.site-head nav ul {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.site-head nav a { color: var(--ink-soft); text-decoration: none; font-size: .9375rem; }
.site-head nav a:hover { color: var(--ink); }
.site-head .lang { color: var(--heading); font-weight: 500; }

/* On the homepage the header sits over the sky, in white, as on Google Sites. */
.home .site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
}
.home .site-head .wordmark,
.home .site-head nav a { color: #fff; }
.home .site-head nav a { opacity: .88; }
.home .site-head nav a:hover { opacity: 1; color: #fff; }

.site-foot {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center;
  margin-top: var(--step); padding: 2rem var(--gutter);
  background: var(--surface); color: var(--ink-faint); font-size: .875rem;
}
.site-foot p { margin: 0; }
.site-foot a { color: var(--ink-soft); }

/* ---------- page shells ---------- */

main { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

.page-head { margin-block: 1.5rem var(--step); max-width: var(--measure); }
.eyebrow { margin: 0 0 .75rem; font-size: .9375rem; color: var(--ink-faint); }
.eyebrow a { color: var(--heading); text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--heading); }
h1 {
  font: 400 clamp(2rem, 5vw, 2.875rem)/1.2 var(--serif);
  letter-spacing: -.01em; margin: 0 0 1rem;
}
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.prose { max-width: var(--measure); }
.prose h2 { font: 400 1.625rem/1.3 var(--serif); margin: 3.5rem 0 .75rem; }
.prose h3 { font: 600 1.125rem/1.4 var(--serif); margin: 2.25rem 0 .5rem; }
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: 12px; margin-block: 1.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: var(--step); }

.legal { font-size: 1rem; }
.legal h2 { font-size: 1.3125rem; margin-top: 2.75rem; }

/* ---------- buttons ---------- */

.button, .store {
  display: inline-block; padding: .5625rem 1.125rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent);
  font: 500 .9375rem/1.2 var(--sans); text-decoration: none;
}
.button:hover, .store:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.button.quiet, .store.ghost { background: transparent; color: var(--heading); border-color: #c9ced1; }
.button.quiet:hover, .store.ghost:hover { background: var(--surface); color: var(--accent-ink); }

/* ---------- product pages ---------- */

.product-head { margin-block: 1.5rem var(--step); max-width: var(--measure); }
.app-icon { border-radius: 22%; margin-bottom: 1.5rem; width: 88px; height: 88px; }

.stores { display: flex; flex-wrap: wrap; gap: .625rem; margin: 1.75rem 0 0; }

.subnav { margin-top: 2rem; }
.subnav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.subnav a { font-size: .9375rem; color: var(--ink-soft); }
.subnav a:hover { color: var(--ink); }

/* ---------- home ---------- */

.hero {
  /* Full bleed out of main's centered column. */
  margin-inline: calc(50% - 50vw);
  min-height: clamp(18rem, 44vh, 26rem);
  display: grid; place-content: center;
  padding: 5rem var(--gutter) 3rem;
  text-align: center; color: #fff;
  background:
    linear-gradient(rgba(20, 24, 40, .28), rgba(20, 24, 40, .38)),
    url("/images/hero-sky-1024.jpg") center / cover;
}
@media (min-width: 64rem) {
  .hero {
    background:
      linear-gradient(rgba(20, 24, 40, .28), rgba(20, 24, 40, .38)),
      url("/images/hero-sky.jpg") center / cover;
  }
}
.hero h1 {
  color: #fff; margin: 0 0 1rem;
  font: 400 clamp(2.25rem, 5.5vw, 3.75rem)/1.12 var(--serif);
  text-shadow: 0 1px 24px rgba(0, 0, 0, .25);
}
.hero .lede {
  color: #fff; margin-inline: auto; max-width: 28em;
  font-size: clamp(1.0625rem, 2vw, 1.3125rem); line-height: 1.45;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .3);
}

.home main > :not(.hero) { max-width: 36rem; margin-inline: auto; }

.apps { margin-top: var(--step); }
.app {
  display: flex; gap: 1.25rem; align-items: center;
  padding-block: 1rem; color: var(--ink); text-decoration: none;
}
.app img { flex: none; width: 64px; height: 64px; border-radius: 22%; }
.app strong { display: block; font: 600 1.25rem/1.3 var(--serif); color: var(--heading); }
.app span span { display: block; color: var(--ink-soft); line-height: 1.5; }
.app:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.others { margin-top: 3rem; }
.others h2 {
  margin: 0 0 .75rem; font: 400 1rem/1.4 var(--serif); color: var(--ink-faint);
}
.others ul {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.others a {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink-soft); font-size: .9375rem; text-decoration: none;
}
.others a:hover { color: var(--ink); text-decoration: underline; }
.others img { width: 28px; height: 28px; border-radius: 22%; }

.about { margin-top: 3rem; color: var(--ink-soft); }

/* ---------- contact ---------- */

.form-embed {
  width: 100%; max-width: 46rem; height: 1100px; border: 0;
  margin-block: 1rem var(--step);
}

/* ---------- citations ---------- */

.cites { list-style: none; margin: 0 0 var(--step); padding: 0; }
.cite { padding: 1.125rem 0; border-bottom: 1px solid var(--rule); }
.cite:last-child { border-bottom: 0; }
.cite-title { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.45; }
.cite-title a { color: var(--ink); }
.cite-meta { margin: 0; font-size: .875rem; color: var(--ink-faint); }
.cite-note { margin: .5rem 0 0; font-size: .875rem; color: var(--ink-soft); }
.badge {
  display: inline-block; margin-left: .5rem; padding: .0625rem .5rem;
  border: 1px solid var(--rule); border-radius: 999px;
  font: .6875rem/1.6 var(--sans); color: var(--ink-soft);
  vertical-align: 1px;
}
.badge-warn { border-color: #b8742f; color: #9a5f22; }
