/* tomarilog.shop: one stylesheet for the front page, the account pages and the app. */
:root {
  --ink: #18212d;
  --ink-2: #3d4856;
  --muted: #5d6877;
  --line: #e2e5ea;
  --line-2: #eef0f3;
  --paper: #fbfaf7;
  --white: #fff;
  --indigo: #23466e;
  --indigo-2: #2f5a8c;
  --indigo-soft: #e9eef5;
  --red: #b8322a;
  --red-soft: #fbeceb;
  --green: #2f6b4f;
  --green-soft: #e8f2ec;
  --amber: #8a5a00;
  --amber-soft: #fbf3e2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(24, 33, 45, 0.06), 0 8px 24px rgba(24, 33, 45, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--indigo);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--indigo-2);
}
:focus-visible {
  outline: 3px solid #7fa6d6;
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin: 0;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.tiny {
  font-size: 12.5px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--indigo);
  background: var(--indigo);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.btn:hover {
  background: var(--indigo-2);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  color: var(--indigo);
}
.btn.ghost:hover {
  background: var(--indigo-soft);
}
.btn.quiet {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  font-weight: 600;
}
.btn.quiet:hover {
  background: var(--line-2);
}
.btn.danger {
  background: var(--white);
  color: var(--red);
  border-color: #e8c3c0;
}
.btn.small {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 14px;
}
.btn.big {
  min-height: 54px;
  padding: 12px 30px;
  font-size: 16px;
}
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}
.linkish {
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--indigo);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.top nav {
  display: flex;
  gap: 22px;
  margin-left: 18px;
}
.top nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
}
.top nav a:hover {
  color: var(--indigo);
}
.top .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.top .login {
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
}
.top .btn {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 14px;
}
@media (max-width: 860px) {
  .top nav {
    display: none;
  }
}
@media (max-width: 420px) {
  .top .login {
    display: none;
  }
  .brand span {
    font-size: 16px;
  }
}

/* forms */
label {
  font-weight: 600;
  font-size: 14.5px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.field .hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd5dd;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
textarea {
  min-height: 120px;
  line-height: 1.7;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--indigo);
  outline: 2px solid #c9d8ea;
  outline-offset: 0;
}
.choice {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd5dd;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  min-height: 46px;
}
.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--indigo);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--indigo);
  flex: none;
}
.msg {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  margin: 0 0 16px;
}
.msg:empty {
  display: none;
}
.msg.err {
  background: var(--red-soft);
  color: #7d1f19;
}
.msg.ok {
  background: var(--green-soft);
  color: #1f4d37;
}
.msg.info {
  background: var(--indigo-soft);
  color: #1d3a5c;
}
.msg.warn {
  background: var(--amber-soft);
  color: #5e3d00;
}

/* cards and pills */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill.red {
  background: var(--red-soft);
  color: var(--red);
}
.pill.green {
  background: var(--green-soft);
  color: var(--green);
}
.pill.indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}
.pill.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

/* the account pages (sign up, log in…) */
.auth {
  min-height: calc(100vh - 64px - 120px);
  display: grid;
  place-items: start center;
  padding: 48px 0 64px;
}
.auth .card {
  width: min(440px, 100% - 32px);
  padding: 32px 28px;
}
.auth h1 {
  font-size: 24px;
  margin-bottom: 8px;
}
.auth .lead {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}
.auth .btn {
  width: 100%;
}
.auth .alt {
  text-align: center;
  font-size: 14.5px;
  margin-top: 18px;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--paper);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot a {
  color: var(--ink-2);
}
.syng-legal-links a {
  display: inline-block;
  padding: 6px 2px;
}
