:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background: #f6f2e8;
  color: #18261e;
  --ink: #18261e;
  --muted: #536155;
  --paper: #f6f2e8;
  --panel: #fcf9f1;
  --moss: #e4ecd9;
  --green: #234b39;
  --rule: #d3d3c2;
  --error: #8c332b;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 0.2em;
}
::selection {
  color: #fff;
  background: var(--green);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #49755c;
  outline-offset: 3px;
}
.mast {
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(18px, 5vw, 68px);
  min-height: 64px;
}
.wordmark {
  font-family: Georgia, serif;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.42rem;
  margin-right: 1rem;
}
.mast span,
small,
.quiet {
  color: var(--muted);
}
main {
  max-width: 1220px;
  margin: auto;
  padding: 0 clamp(16px, 4vw, 54px) 54px;
}
.message {
  min-block-size: 1.5rem;
  margin: 12px 0;
  color: var(--green);
  font-weight: 600;
}
.message[data-error='true'] {
  color: var(--error);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(188px, 235px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 75px);
}
.rail-head,
.card-head,
.decision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rail-head h2 {
  font-size: 1.15rem;
  font-family: inherit;
}
.workspace aside {
  border-right: 1px solid var(--rule);
  padding-right: 20px;
}
.content {
  max-width: 790px;
}
.welcome {
  max-width: 650px;
  margin: 36px 0 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.09;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  margin-bottom: 10px;
}
h3 {
  font-size: 1.14rem;
}
p {
  line-height: 1.55;
  max-width: 68ch;
}
.welcome p,
.quiet {
  margin: 0.75rem 0;
}
.card-head {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 9px;
  padding-bottom: 12px;
}
.card-head p {
  margin: 6px 0 0;
  font-size: 0.85rem;
}
.flag {
  white-space: nowrap;
  background: var(--moss);
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.82rem;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 15px;
  cursor: pointer;
  background: var(--green);
  color: white;
  font-weight: 650;
}
button:hover:not(:disabled) {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.ghost,
.secondary {
  background: transparent;
  border-color: var(--rule);
  color: var(--green);
}
input,
textarea,
select {
  width: 100%;
  padding: 9px 10px;
  min-height: 43px;
  background: var(--panel);
  border: 1px solid #bdbfae;
  border-radius: 5px;
  color: var(--ink);
}
input[type='checkbox'] {
  width: 1.15rem;
  min-height: 1.15rem;
  accent-color: var(--green);
  flex: none;
}
input[type='file'] {
  font-size: 0.85rem;
  padding: 6px;
}
input[type='file']::file-selector-button {
  border: 0;
  border-radius: 4px;
  background: var(--moss);
  padding: 6px;
  color: var(--ink);
  cursor: pointer;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.91rem;
  font-weight: 620;
  min-width: 0;
}
label small {
  font-weight: 400;
}
.tick {
  flex-direction: row;
  align-items: center;
  padding-block: 5px;
  gap: 8px;
}
.fields,
.photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  margin: 17px 0;
}
.fields .wide {
  grid-column: 1/-1;
}
.photo {
  height: clamp(120px, 23vw, 210px);
  display: grid;
  place-items: center;
  background: var(--moss);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--muted);
}
.photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.steps {
  display: flex;
  gap: 4px;
  overflow: auto;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.steps button {
  white-space: nowrap;
  background: none;
  color: var(--muted);
  border-radius: 0;
  font-size: 0.92rem;
  padding: 8px 11px;
  border-bottom: 2px solid transparent;
}
.steps button[aria-current='true'] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.decision {
  background: var(--moss);
  border-radius: 7px;
  padding: 15px 16px;
}
.decision p {
  margin-top: 4px;
  font-size: 0.92rem;
}
.net {
  text-align: right;
  flex-shrink: 0;
}
.decision strong {
  display: block;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
}
.details,
#cards {
  list-style: none;
  margin: 6px 0 17px;
  padding: 0;
}
.details li {
  border-bottom: 1px solid var(--rule);
  padding: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.details a {
  overflow-wrap: anywhere;
}
.details button {
  font-size: 0.82rem;
  min-height: 38px;
  padding: 4px 8px;
}
.details:empty {
  display: none;
}
#cards li {
  border-bottom: 1px solid var(--rule);
}
#cards button {
  background: none;
  color: var(--ink);
  text-align: left;
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}
#cards button[aria-current='true'] {
  background: var(--moss);
}
#add-card button,
#auth button {
  margin-top: 9px;
}
#auth form {
  margin-top: 16px;
  max-width: 400px;
}
details {
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}
summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 750;
  padding: 9px 0;
}
summary span {
  font-weight: 400;
  font-size: 0.88rem;
  margin-left: 7px;
}
@media (max-width: 670px) {
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .workspace aside {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 12px;
  }
  .rail-head h2 {
    margin: 0;
  }
  #cards:not(:empty) {
    display: flex;
    overflow: auto;
    margin: 8px 0;
    gap: 5px;
  }
  #cards button {
    white-space: nowrap;
  }
  #add-card {
    display: flex;
    align-items: flex-end;
    gap: 10px;
  }
  #add-card label {
    flex: 1;
  }
  #add-card button {
    white-space: nowrap;
  }
  .mast span {
    display: none;
  }
  .decision {
    align-items: flex-start;
  }
  .net strong {
    font-size: 1.3rem;
  }
  .steps {
    gap: 0;
  }
  .steps button {
    font-size: 0.83rem;
    padding-inline: 8px;
  }
  .card-head {
    align-items: flex-start;
  }
}
@media (max-width: 370px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .decision {
    flex-direction: column;
  }
  .net {
    text-align: left;
  }
}
