:root {
  font:
    16px/1.5 "DM Sans",
    "Segoe UI",
    sans-serif;
  color: #262c29;
  background: #faf9f5;
  --green: #214e42;
  --line: #d9dcd2;
  --rose: #e7c5c1;
  --muted: #58645c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
nav,
main {
  max-width: 1220px;
  margin: auto;
  padding: 0 clamp(18px, 5vw, 74px);
}
header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.brand,
h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}
.brand {
  font-size: 2.1rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.06em;
}
.brand span {
  font-size: 1.25rem;
  vertical-align: top;
  margin-left: 4px;
  color: #a55a64;
}
main {
  padding-top: 36px;
  padding-bottom: 64px;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0 0 26px;
}
h2 {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  margin: 16px 0;
}
h3 {
  font-size: 1.03rem;
}
p {
  margin: 0.6em 0;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 0.875rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: start;
}
.summary,
.card {
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
}
.summary {
  position: sticky;
  top: 20px;
  background: #e9eee5;
  border: 0;
}
.summary h2 {
  margin-top: 0;
}
.row,
nav,
.tools,
.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.steps {
  padding: 0;
  list-style: none;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 2px 0 24px;
}
.steps [aria-current],
nav [aria-current] {
  color: var(--green);
  font-weight: 700;
  border-bottom: 2px solid var(--green);
}
.service {
  display: flex;
  width: 100%;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: #fff;
  color: inherit;
  border: 1px solid var(--line);
  margin: 9px 0;
  border-radius: 10px;
  padding: 19px;
}
.service[aria-pressed="true"] {
  border-color: var(--green);
  background: #edf2ea;
}
.service strong,
.service small {
  display: block;
}
.service .sign {
  font-size: 1.35rem;
  color: var(--green);
}
button,
.button {
  font: inherit;
  cursor: pointer;
  background: var(--green);
  color: white;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
}
button:hover,
.button:hover {
  filter: brightness(0.92);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.plain,
nav button {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
nav {
  padding-top: 12px;
  gap: 4px;
}
nav button {
  border: 0;
  border-radius: 0;
}
.tools {
  margin: 16px 0;
}
.tools label {
  margin: 0;
}
.field,
label {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  font-size: 0.95rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  border: 1px solid #aeb8ae;
  border-radius: 6px;
  background: white;
  color: #262c29;
  padding: 9px 12px;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
textarea {
  min-height: 75px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.slot {
  background: white;
  color: var(--green);
  border-color: var(--line);
}
.slot.selected {
  background: var(--green);
  color: white;
}
.total,
.entry {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.entry small {
  display: block;
}
.entry button {
  flex: none;
}
.summary .button,
.wide {
  display: block;
  width: 100%;
  margin-top: 14px;
}
.group {
  margin: 22px 0;
}
.block {
  border-left: 4px solid #a66663;
  padding-left: 12px;
}
.week {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.week article {
  min-width: 0;
}
.week .entry {
  display: grid;
}
.week h2 {
  font-size: 1.3rem;
}
dialog {
  width: min(640px, 96vw);
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: #faf9f5;
  color: inherit;
}
dialog::backdrop {
  background: #17282080;
}
dialog h2 {
  margin: 0;
}
.danger {
  color: #943833;
}
.notice,
#notice:not(:empty) {
  padding: 12px 18px;
  background: #fff4df;
  border: 1px solid #cfa878;
  border-radius: 8px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  max-width: 92vw;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b16872;
  outline-offset: 2px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
@media (max-width: 750px) {
  header {
    height: 64px;
  }
  .layout,
  .cols {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .service {
    padding: 15px;
  }
  .entry {
    flex-wrap: wrap;
  }
  main {
    padding-top: 24px;
  }
  nav {
    gap: 0;
  }
  nav button {
    padding: 8px;
  }
  .steps {
    gap: 10px;
  }
  .card,
  .summary {
    padding: 17px;
  }
}
