/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --paper: #f8f6ef;
  --panel: #fffefb;
  --ink: #283f38;
  --muted: #737c73;
  --line: #e2e4d9;
  --accent: #315b4d;
  --peach: #e6b197;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.85;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
input[type="submit"] {
  cursor: pointer;
}
button:disabled,
input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.075em;
  line-height: 1.6;
  font-size: clamp(27px, 3.4vw, 42px);
}
h2 {
  font-size: 20px;
  letter-spacing: 0.04em;
}
h3 {
  font-size: 17px;
}
p {
  overflow-wrap: anywhere;
}
small {
  font-size: 12px;
}
img {
  max-width: 100%;
  display: block;
}
.site-header {
  max-width: 1280px;
  padding: 27px 44px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: "Yu Mincho", serif;
  font-size: 21px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.brand small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
}
.brand-mark {
  font-size: 38px;
  color: var(--accent);
  font-family: serif;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
}
.site-header nav form {
  display: contents;
}
.app-shell {
  max-width: 1192px;
  margin: 0 auto;
  padding: 42px 38px 70px;
  min-height: 75vh;
}
.site-footer {
  max-width: 1192px;
  margin: auto;
  padding: 24px 38px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.site-footer p {
  margin: 0;
}
.intro {
  position: relative;
  padding: 45px 0 58px;
  overflow: hidden;
}
.intro h1 {
  margin: 18px 0 20px;
}
.intro p {
  color: var(--muted);
  line-height: 2.2;
  margin-bottom: 30px;
}
.intro-orbit {
  position: absolute;
  right: 20px;
  top: 12px;
  color: #dfe4d5;
  font-family: serif;
  font-size: 340px;
  line-height: 1;
  z-index: -1;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}
.muted,
.field small {
  color: var(--muted);
  font-size: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
}
.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  transition:
    background 0.15s,
    transform 0.15s;
  text-align: center;
}
.button:hover {
  background: #234638;
}
.button.secondary {
  color: var(--accent);
  background: transparent;
  border-color: #bbc7b9;
}
.button.secondary:hover {
  background: #edf0e6;
}
.button.small {
  padding: 9px 16px;
  font-size: 12px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}
.text-button:hover,
.text-link:hover {
  text-decoration: underline;
}
.text-link {
  color: var(--accent);
  font-size: 12px;
}
.danger {
  color: #9b5544;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 3px 14px #273b3003;
}
.panel > h2 {
  margin-bottom: 18px;
}
.panel .section-heading:first-child {
  margin-top: 0;
}
.empty-state {
  border: 1px dashed #cdd5c5;
  border-radius: 12px;
  text-align: center;
  padding: 42px 24px;
  background: #f0f2e8;
}
.empty-state p {
  color: var(--muted);
  font-size: 13px;
}
.empty-flower {
  font-size: 40px;
  color: #79917b;
  display: block;
  margin-bottom: 14px;
}
.empty-state.compact {
  padding: 22px;
}
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.world-tile {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}
.world-tile:hover {
  transform: translateY(-4px);
}
.world-tile > img,
.world-placeholder {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.world-placeholder {
  display: grid;
  place-items: center;
  font: 80px serif;
  color: #8b9d7e;
  background:
    radial-gradient(ellipse at 50% 80%, #d4ddc6, transparent 70%), #e8ecdf;
}
.tile-body {
  padding: 24px;
}
.tile-body h3 {
  font-family: "Yu Mincho", serif;
  font-size: 21px;
}
.tile-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.tile-body p span {
  padding: 0 8px;
}
.page-heading {
  margin: 12px auto 32px;
  max-width: 820px;
}
.page-heading p {
  color: var(--muted);
}
.editor-form {
  max-width: 820px;
  margin: auto;
}
.step-number {
  color: #9aaa8f;
  font-family: serif;
  margin-right: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.field {
  margin-bottom: 20px;
}
.field label,
fieldset legend {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
  color: #516256;
}
.field input,
.field textarea,
.field select,
.share-link input {
  display: block;
  width: 100%;
  border: 1px solid #d7ddcf;
  border-radius: 5px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
.field textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #9dbbaa;
  outline-offset: 2px;
}
.field small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice span {
  display: block;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
}
.choice input:checked + span {
  background: #e0e9db;
  color: #315b4d;
  border-color: #95ac90;
}
.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 20px;
}
.notice {
  background: #eaf0e3;
  color: #3e634c;
  padding: 14px 18px;
  border: 1px solid #d8e1cd;
  border-radius: 6px;
  margin-bottom: 22px;
  font-size: 13px;
}
.notice.error {
  background: #fbede8;
  color: #945640;
  border-color: #ecd4c9;
}
.notice p {
  margin: 0;
}
.back-link {
  font-size: 11px;
  color: var(--muted);
}
.world-heading {
  margin: 25px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.world-heading h1 {
  font-size: 32px;
  margin-bottom: 14px;
}
.world-heading p {
  max-width: 680px;
  color: var(--muted);
}
.world-heading .button {
  flex-shrink: 0;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.chosen-direction {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.chosen-direction img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.chosen-direction p {
  font-size: 12px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 99px;
  background: #edf0e5;
  font-size: 10px;
  color: #6c7d61;
  flex-shrink: 0;
}
.quote-entry blockquote {
  font-family: "Yu Mincho", serif;
  font-size: 20px;
  margin: 0 0 16px;
  line-height: 1.9;
}
.quote-entry blockquote p {
  margin-bottom: 8px;
}
.quote-art {
  border-radius: 8px;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 16px;
}
.quote-entry .badge {
  margin-bottom: 16px;
}
.sharing-panel .button {
  width: 100%;
}
.share-link {
  margin: 20px 0;
}
.share-link input {
  font-size: 11px;
  margin-bottom: 8px;
}
.share-link span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.sharing-panel .text-button {
  margin-top: 18px;
}
.aside-note {
  padding: 20px 26px;
  color: var(--muted);
  text-align: center;
}
.aside-note > span {
  font: 45px serif;
  color: #b6bca6;
}
.aside-note p {
  font-family: "Yu Mincho", serif;
  font-size: 18px;
  line-height: 2;
  margin: 10px 0;
}
.aside-note small {
  font-size: 10px;
}
details {
  margin-top: 16px;
}
summary {
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 12px;
}
.run-group {
  margin: 26px 0 40px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.candidate-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.candidate-card > img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}
.candidate-body {
  padding: 20px;
}
.candidate-body > p {
  color: var(--muted);
  font-size: 12px;
}
.candidate-body > .button_to .button {
  width: 100%;
}
.candidate-placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #edf0e6;
  color: #839278;
  padding: 25px;
  text-align: center;
}
.candidate-placeholder span {
  font: 55px serif;
}
.candidate-placeholder p {
  font-size: 12px;
}
.revision-note {
  font-size: 12px;
  color: var(--muted);
  padding-left: 15px;
  border-left: 2px solid #d5dccd;
}
.auth-panel {
  max-width: 480px;
  margin: 35px auto;
  padding: 38px;
}
.auth-panel h1 {
  font-size: 27px;
}
.auth-panel > p {
  color: var(--muted);
}
.auth-panel .button {
  width: 100%;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 25px 0;
}
.metric-grid strong {
  display: block;
  font:
    35px Georgia,
    serif;
  margin-top: 8px;
}
.budget-track {
  height: 8px;
  background: #e6ebdf;
  border-radius: 4px;
  overflow: hidden;
}
.budget-fill {
  height: 100%;
  background: var(--accent);
}
.data-table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
td,
th {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-weight: 400;
}
.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cost-row:last-child {
  border: 0;
}
@media (max-width: 800px) {
  .site-header {
    padding: 20px 22px;
  }
  .site-header nav {
    gap: 15px;
  }
  .app-shell {
    padding: 28px 22px 50px;
  }
  .intro {
    padding: 25px 0 40px;
  }
  .intro-orbit {
    right: -90px;
    top: 60px;
    font-size: 240px;
    opacity: 0.65;
  }
  .world-grid,
  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .workspace-grid aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .world-heading {
    flex-direction: column;
    gap: 12px;
  }
  .metric-grid {
    gap: 12px;
  }
  .metric-grid .panel {
    padding: 18px;
  }
}
@media (max-width: 520px) {
  .brand {
    font-size: 17px;
  }
  .brand-mark {
    font-size: 29px;
  }
  .site-header nav {
    gap: 12px;
    font-size: 10px;
  }
  .site-header .text-button {
    font-size: 10px;
  }
  .world-grid,
  .candidate-grid,
  .form-grid,
  .metric-grid,
  .workspace-grid aside {
    grid-template-columns: 1fr;
  }
  .intro h1 {
    font-size: 27px;
  }
  .intro p {
    max-width: 90%;
    font-size: 12px;
  }
  .intro-orbit {
    top: 110px;
    font-size: 170px;
    right: -60px;
  }
  .panel {
    padding: 22px;
  }
  .candidate-grid {
    gap: 18px;
  }
  .chosen-direction {
    align-items: flex-start;
    gap: 14px;
  }
  .chosen-direction img {
    width: 86px;
    height: 86px;
  }
  .site-footer {
    display: block;
    padding: 24px 22px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h3 {
    font-size: 15px;
  }
  .auth-panel {
    padding: 26px;
  }
  .world-heading h1 {
    font-size: 27px;
  }
  .aside-note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
