/* Moss green, warm paper, and editorial typography. */
:root {
  --moss: #46533d;
  --cream: #f4eedf;
  --soft-cream: #d6d9c7;
  --paper: #f4eedf;
  --white: #fcf8ed;
  --ink: #283423;
  --muted: #65705d;
  --line: #ccd0bf;
  --accent: #46533d;
  --gold: #d7c799;
}
body { background: var(--moss); color: var(--cream); }
::selection { background: #d9c896; color: var(--ink); }
.wrap { max-width: 1160px; width: calc(100% - 104px); }
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 26px;
  height: 126px;
  border-bottom: 1px solid rgba(244,238,223,.32);
}
.header .brand { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 8px; }
.header .brand-en { font-size: 62px; font-weight: 700; letter-spacing: .045em; line-height: .9; }
.header .brand-jp { display: block; border: 0; padding: 0; font-size: 10px; letter-spacing: .2em; }
.header nav { grid-column: 1; grid-row: 1; gap: 19px; font-size: 11px; }
.header nav a { padding: 9px 0; border-bottom: 1px solid transparent; }
.header nav a:hover { color: var(--cream); border-bottom-color: var(--cream); }
.private { grid-column: 3; grid-row: 1; justify-self: end; color: var(--soft-cream); font-size: 10px; }
.private span { background: var(--gold); }
.hero {
  position: relative;
  grid-template-columns: 1.18fr .82fr;
  gap: 72px;
  padding: 53px 0 61px;
}
.hero .eyebrow { color: var(--soft-cream); font-size: 10px; letter-spacing: .19em; margin-bottom: 19px; }
.hero h1 { font-size: clamp(42px,4.6vw,64px); line-height: 1.55; letter-spacing: .06em; margin-bottom: 22px; }
.hero h1 span { border: 0; padding: 0; }
.intro { font-size: 13px; line-height: 2.05; margin-bottom: 17px; }
.hero-note { color: var(--soft-cream); border-left: 0; padding: 0; font-size: 11px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.hero-link {
  background: var(--cream);
  color: var(--ink);
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 10px 23px;
  border-radius: 28px;
  font-size: 12px;
  font-weight: 500;
  transition: background .15s;
}
.hero-link:hover { background: #e3d7b8; }
.hero-link span { font-size: 20px; line-height: 1; }
.hero-meta { font-size: 9px; letter-spacing: .09em; color: var(--soft-cream); }
.hero .hero-art.oneko-art {
  position: relative;
  isolation: isolate;
  max-width: 350px;
  border: 0;
  padding: 20px 15px 18px;
  margin: 0 auto;
  background: transparent;
  align-self: center;
  transform: rotate(-2deg);
}
.hero-art.oneko-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 165px 165px 24px 24px;
  background: var(--cream);
}
.oneko-image { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.oneko-art figcaption { color: var(--muted); font-size: 10px; letter-spacing: .09em; margin-top: 9px; }
.hero-edition {
  position: absolute;
  bottom: 16px;
  left: 0;
  margin: 0;
  color: var(--soft-cream);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: .14em;
}
.tool { padding-top: 23px; border-top: 1px solid rgba(244,238,223,.32); }
.tool-heading { margin-bottom: 25px; gap: 15px; }
.section-no { color: var(--gold); border: 0; font-size: 17px; }
.tool-heading h2, .section-heading h2 { font-size: 24px; letter-spacing: .06em; }
.tool-heading .small-caps { color: var(--soft-cream); font-size: 9px; }
.workspace {
  background: var(--paper);
  color: var(--ink);
  grid-template-columns: 350px minmax(0,1fr);
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 525px;
}
.input-panel { padding: 33px 29px; background: #ecebdc; border-right: 1px solid #c3cab4; }
.results-panel { padding: 32px; }
.step-label { font-size: 9px; letter-spacing: .13em; }
.date-fields legend { font-family: var(--serif); font-size: 20px; margin-bottom: 18px; }
input[type=number], input[type=time], input[type=text], select, textarea {
  border: 1px solid #b4bea6;
  background: var(--white);
  border-radius: 8px;
  min-height: 49px;
}
.field-help { font-size: 11px; }
.primary {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--cream);
  border-radius: 28px;
  min-height: 52px;
  padding: 13px 21px;
  font-size: 13px;
  margin-top: 18px;
}
.primary:hover { background: #303d2b; border-color: #303d2b; }
.primary span { font-size: 23px; }
.sample-button { font-size: 10px; }
.privacy-note { border-top-color: #c3cab4; font-size: 10px; }
.options, .sex-option { border-color: #c3cab4; }
.sex-option { border-radius: 9px; }
.empty { min-height: 420px; }
.empty-symbol {
  color: var(--moss);
  background: #e4e5d5;
  width: 112px;
  height: 112px;
  border: 1px solid #cad0bb;
  line-height: 1.1;
  font-size: 84px;
}
.empty .eyebrow { font-size: 9px; color: var(--muted); }
.empty h3 { font-size: 27px; letter-spacing: .04em; }
.empty-keys span { border-radius: 14px; background: #ecebdc; border-color: #d0d3bf; padding: 3px 11px; }
.result-top h3 { font-size: 26px; }
.result-status { border-radius: 18px; border-color: #b7c1a6; background: #e9ecde; font-size: 9px; }
.result-status.pending { background: #f5e6cd; border-color: #d8b991; }
.star-card { border: 1px solid #c4ccb7; border-radius: 12px; background: #fbf7ec; padding: 17px; }
.star-card.main-card { background: #e4e8d8; }
.star-label span { font-size: 8px; letter-spacing: .06em; }
.star-value { font-size: 25px; }
.star-description { font-size: 11px; }
.maximum-card { background: #eee3cb; border-color: #d4c7a7; }
.maximum-chip { border-bottom-color: #a79161; }
.boundary-note, .stale-note, .error { border-radius: 9px; }
.secondary { border-radius: 25px; border-color: var(--moss); padding: 10px 18px; min-height: 45px; }
.secondary:hover { background: #e5e6d7; }
.explain { padding-top: 64px; padding-bottom: 57px; }
.section-lead { color: var(--soft-cream); font-size: 12px; line-height: 2; }
.role-grid { border-top: 1px solid rgba(244,238,223,.3); border-bottom: 1px solid rgba(244,238,223,.3); }
.role-grid article { border-right: 1px solid rgba(244,238,223,.3); padding: 26px 18px; }
.role-grid article:first-child { padding-left: 18px; }
.role-grid article:last-child { border-right: 0; }
.role-grid article>span { color: var(--soft-cream); font-size: 8px; letter-spacing: .1em; }
.role-grid h3 { font-size: 23px; margin: 15px 0 5px; }
.role-grid .role-tag { color: #e5d5ad; font-size: 10px; }
.role-grid p:not(.role-tag) { color: var(--soft-cream); font-size: 11px; line-height: 2; }
.role-grid .month-role { background: transparent; color: var(--cream); }
.role-grid .month-role>span, .role-grid .month-role p:not(.role-tag) { color: var(--soft-cream); }
.role-grid .month-role .role-tag { color: #e5d5ad; }
.footer { border-top: 1px solid rgba(244,238,223,.32); padding: 31px 0 39px; }
.footer .brand-en { font-size: 32px; font-weight: 700; letter-spacing: .04em; }
.footer p, .footer>span { color: var(--soft-cream); font-size: 10px; }
.skip { background: var(--cream); color: var(--ink); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: #d5b76d; }
.noscript { color: var(--ink); }

@media (min-width:1440px) {
  .hero { padding-top: 59px; padding-bottom: 68px; }
}
@media (max-width:1050px) {
  .wrap { width: calc(100% - 64px); }
  .header { height: 114px; gap: 18px; }
  .header .brand-en { font-size: 54px; }
  .header nav { gap: 14px; font-size: 10px; }
  .hero { gap: 45px; grid-template-columns: 1.12fr .88fr; }
  .hero h1 { font-size: 48px; }
  .hero .hero-art.oneko-art { max-width: 315px; }
  .workspace { grid-template-columns: 315px minmax(0,1fr); }
  .input-panel, .results-panel { padding: 27px; }
  .star-value { font-size: 22px; }
  .role-grid article { padding: 23px 13px; }
  .role-grid h3 { font-size: 20px; }
}
@media (max-width:780px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 102px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .header .brand { order: 1; flex-direction: column; align-items: flex-start; gap: 7px; }
  .header .brand-en { font-size: 43px; }
  .header .brand-jp { font-size: 8px; letter-spacing: .13em; }
  .header nav { display: flex; order: 2; gap: 13px; font-size: 10px; }
  .private { display: none; }
  .hero { grid-template-columns: 1.1fr .9fr; gap: 20px; padding: 39px 0 49px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .09em; margin-bottom: 15px; }
  .hero h1 { font-size: clamp(32px,5.2vw,43px); letter-spacing: .02em; line-height: 1.65; margin-bottom: 17px; }
  .intro { font-size: 11px; line-height: 2; }
  .intro br { display: none; }
  .hero-note { font-size: 10px; }
  .hero .hero-art.oneko-art { max-width: 235px; padding: 15px 8px 13px; align-self: center; margin: 0 auto; }
  .hero-art.oneko-art::before { border-radius: 120px 120px 18px 18px; }
  .oneko-art figcaption { font-size: 8px; letter-spacing: .01em; }
  .hero-actions { margin-top: 19px; gap: 12px; }
  .hero-link { font-size: 11px; gap: 17px; min-height: 43px; padding: 9px 16px; }
  .hero-link span { font-size: 18px; }
  .hero-meta { display: none; }
  .hero-edition { font-size: 8px; bottom: 12px; letter-spacing: .1em; }
  .tool { padding-top: 20px; }
  .tool-heading { gap: 12px; margin-bottom: 20px; }
  .tool-heading h2, .section-heading h2 { font-size: 22px; }
  .tool-heading .small-caps { font-size: 8px; }
  .workspace { grid-template-columns: 1fr; border-radius: 17px; }
  .input-panel { padding: 26px; border-right: 0; border-bottom: 1px solid #c3cab4; }
  .results-panel { padding: 26px; }
  .date-row { gap: 13px; }
  .date-row input, .date-row select { font-size: 16px; }
  .empty { min-height: 305px; }
  .empty-symbol { width: 89px; height: 89px; font-size: 67px; margin-bottom: 18px; }
  .empty h3 { font-size: 23px; }
  .star-value { font-size: 23px; }
  .explain { padding: 45px 0 42px; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .role-grid article { padding: 23px 17px; border-bottom: 1px solid rgba(244,238,223,.3); }
  .role-grid article:first-child { padding-left: 17px; }
  .role-grid article:nth-child(2n) { border-right: 0; }
  .role-grid article:last-child { grid-column: 1/-1; border-bottom: 0; }
  .role-grid h3 { font-size: 22px; }
  .footer { padding: 27px 0 31px; }
  .footer .brand-en { font-size: 28px; }
}
@media (max-width:480px) {
  .wrap { width: calc(100% - 32px); }
  .header { height: 98px; }
  .header nav { gap: 10px; font-size: 9px; }
  .header .brand-en { font-size: 39px; }
  .hero { grid-template-columns: 1fr 128px; gap: 13px; padding-top: 34px; }
  .hero h1 { font-size: 31px; }
  .hero .eyebrow { font-size: 7px; }
  .hero .hero-art.oneko-art { padding: 11px 5px 10px; }
  .hero-art.oneko-art::before { border-radius: 80px 80px 14px 14px; }
  .oneko-art figcaption { font-size: 7px; line-height: 1.8; }
  .intro { font-size: 10px; }
  .hero-note { font-size: 9px; line-height: 2; }
  .hero-link { font-size: 10px; padding: 9px 13px; gap: 12px; }
  .tool-heading .small-caps { display: none; }
  .input-panel, .results-panel { padding: 23px 19px; }
  .result-top h3 { font-size: 23px; }
  .star-card { padding: 14px 12px; }
  .star-value { font-size: 21px; }
  .star-description { font-size: 10px; }
  .secondary { padding: 10px 15px; font-size: 11px; }
  .maximum-chip { font-size: 19px; }
}
@media (max-width:360px) {
  .hero { grid-template-columns: 1fr 105px; gap: 9px; }
  .hero h1 { font-size: 28px; }
  .header nav { font-size: 8px; gap: 8px; }
  .header .brand-en { font-size: 35px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-link { transition: none; }
}
@media print {
  body { color: #000; background: #fff; }
  .workspace, .star-card { border-radius: 0; background: #fff; }
}

/* Orange accents and the user's original character illustration. */
:root { --orange: #ff792a; --gold: #ff792a; }
.header { height: 146px; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 13px; padding: 19px 0 17px; }
.header .brand { grid-column: 1/-1; grid-row: 1; justify-self: center; gap: 8px; }
.header .brand-en { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(28px,5.4vw,64px); font-weight: 800; font-stretch: condensed; letter-spacing: .065em; color: var(--orange); line-height: .94; white-space: nowrap; }
.header .brand-jp { font-size: 9px; letter-spacing: .2em; }
.header nav { grid-column: 1; grid-row: 2; font-size: 10px; gap: 21px; }
.private { grid-column: 2; grid-row: 2; font-size: 9px; }
.hero-link { background: var(--orange); color: #202c1b; }
.hero-link:hover { background: #ff823d; }
.primary { background: var(--orange); border-color: var(--orange); color: #202c1b; font-weight: 600; }
.primary:hover { background: #ff823d; border-color: #ff823d; }
.section-no { color: var(--orange); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 20px; font-weight: 700; }
.hero .hero-art.oneko-art { max-width: 292px; padding: 18px 13px 17px; }
.hero-art.oneko-art::before { background: #f8f6ef; }
.oneko-image { aspect-ratio: 455/615; }
.footer .brand-en { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: .055em; color: var(--orange); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: #b85b28; }
@media (max-width:1050px) {
  .header { height: 137px; }
  .header .brand-en { font-size: clamp(28px,5.4vw,57px); }
  .hero .hero-art.oneko-art { max-width: 275px; }
}
@media (max-width:780px) {
  .header { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; height: 126px; padding: 15px 0; gap: 11px; }
  .header .brand { grid-column: 1/-1; grid-row: 1; align-items: center; }
  .header .brand-en { font-size: clamp(28px,6vw,45px); letter-spacing: .045em; }
  .header nav { grid-column: 1; grid-row: 2; font-size: 9px; gap: 17px; }
  .private { display: flex; grid-column: 2; grid-row: 2; font-size: 8px; }
  .hero .hero-art.oneko-art { max-width: 205px; padding: 13px 8px 12px; }
  .footer .brand-en { font-size: 20px; }
}
@media (max-width:480px) {
  .header { height: 120px; }
  .header .brand-en { font-size: 30px; letter-spacing: .03em; }
  .header .brand-jp { font-size: 8px; }
  .header nav { gap: 14px; font-size: 9px; }
  .private { font-size: 7px; gap: 5px; }
  .hero .hero-art.oneko-art { padding: 9px 5px 10px; }
  .hero-art.oneko-art::before { border-radius: 65px 65px 13px 13px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 13px; }
  .footer .brand-en { font-size: 20px; }
}
@media (max-width:360px) {
  .header .brand-en { font-size: 27px; letter-spacing: .02em; }
  .header nav { font-size: 8px; gap: 13px; }
}
@media print { .primary, .hero-link { background: #fff; color: #000; } }

.header a:focus-visible, .hero-link:focus-visible, .footer a:focus-visible { outline-color: var(--cream); }

/* Transparent character, without a paper-colored panel behind it. */
.hero-art.oneko-art::before { content: none; display: none; }
.hero .hero-art.oneko-art { background: transparent; padding: 0; }
.oneko-image { aspect-ratio: auto; }
.oneko-art figcaption { color: var(--soft-cream); }
