:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --card: #fffef9;
  --ink: #193c32;
  --green: #204d3e;
  --muted: #53665b;
  --line: #d6d9cd;
  --sage: #e6eddf;
  --ochre: #93632d;
  --serif: "Hedvig Letters Serif",Georgia,serif;
  --sans: "Source Sans 3",system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.48 var(--sans);
}

[hidden] {
  display: none !important;
}

h1,h2,h3,h4,p,ul {
  margin: 0;
}

h1,h2,h3 {
  font: normal 1.65rem/1.15 var(--serif);
  letter-spacing: -.035em;
}

button,input,select,textarea {
  font: inherit;
}

a {
  color: var(--green);
  text-underline-offset: .2em;
}

button,.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: .45rem;
  padding: .53rem .87rem;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
}

button:hover,.button:hover {
  background: var(--sage);
  border-color: #99ae9d;
}

button:disabled {
  opacity: .55;
  cursor: default;
}

:focus-visible {
  outline: 3px solid #a46128;
  outline-offset: 3px;
}

.primary,.button {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.primary:hover,.button:hover {
  background: #143d30;
  color: white;
}

header {
  background: var(--ink);
  color: var(--card);
}

.bar,main {
  max-width: 85rem;
  margin: auto;
  padding-inline: clamp(1rem,4vw,4.25rem);
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.25rem;
}

.home {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font: 1.35rem var(--serif);
  text-decoration: none;
  color: var(--card);
}

.mark,.calendar-mark {
  position: relative;
  display: inline-block;
  width: 1.3rem;
  height: 1.35rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(transparent 28%,currentColor 28% 36%,transparent 36%);
}

.mark::before,.calendar-mark::before {
  position: absolute;
  content: "";
  width: 45%;
  height: .32rem;
  border-inline: 2px solid currentColor;
  top: -.24rem;
  left: 22%;
}

nav button {
  background: transparent;
  color: white;
  border-color: #768e80;
  font-weight: 450;
}

nav button:hover {
  background: #345747;
}

.skip {
  position: absolute;
  left: .5rem;
  top: -8rem;
  z-index: 2;
  background: white;
  padding: .6rem;
}

.skip:focus {
  top: .45rem;
}

main {
  padding-bottom: 4rem;
}

.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem,4.2vw,4rem) 0 1.9rem;
  border-bottom: 1px solid #bcc7b9;
  margin-bottom: 1.6rem;
}

h1 {
  font-size: clamp(2.7rem,5.2vw,4.8rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.heading p {
  max-width: 43rem;
  margin-top: .75rem;
  color: var(--muted);
}

#today {
  font: italic 1.08rem var(--serif);
  white-space: nowrap;
  padding-bottom: .18rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(14rem,18rem) minmax(0,1fr);
  gap: clamp(1.2rem,3vw,2.8rem);
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: clamp(1.2rem,2vw,1.75rem);
}

.library {
  border-top: 3px solid #6c856c;
}

.library h2 {
  font-size: 1.5rem;
}

.section-title,.dialog-top,.property-head,.actions,.month-nav,.source-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.count,.status {
  font-size: .78rem;
  line-height: 1.4;
  border-radius: 1rem;
  padding: .16rem .55rem;
  background: var(--sage);
  color: #274d39;
}

.count {
  min-width: 1.7rem;
  text-align: center;
}

.property-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.property-list button {
  width: 100%;
  display: block;
  text-align: left;
  overflow-wrap: anywhere;
  border: 1px solid transparent;
  background: transparent;
  padding: .7rem .8rem;
}

.property-list button[aria-current=true] {
  background: var(--sage);
  border-color: #c8d6c5;
}

.property-list small,.job small,.source small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.wide {
  width: 100%;
}

.intro,.gate {
  padding: clamp(2.25rem,6vw,5rem);
  background: #edf0e5;
}

.intro h2,.gate h2 {
  font-size: clamp(1.9rem,3.4vw,3rem);
  max-width: 20em;
}

.intro p,.gate p {
  color: var(--muted);
  max-width: 36rem;
  margin: .7rem 0 1.3rem;
}

.calendar-mark {
  width: 2.5rem;
  height: 2.6rem;
  color: #678267;
  margin-bottom: 1.4rem;
}

.property-head h2 {
  font-size: clamp(2rem,3vw,3rem);
  overflow-wrap: anywhere;
}

#area {
  font-size: .87rem;
  color: var(--muted);
  margin-bottom: .2rem;
}

.specs,.muted,.hint,small,.footnote {
  color: var(--muted);
}

.specs {
  margin: .45rem 0 1.35rem;
  font-size: .93rem;
}

.switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: .45rem;
  padding: 2px;
  flex-shrink: 0;
}

.switch button {
  border: 0;
  border-radius: .3rem;
  padding: .35rem .75rem;
  background: transparent;
}

.switch button[aria-pressed=true] {
  background: var(--green);
  color: white;
}

#range {
  font-size: .86rem;
  margin-top: .28rem;
}

.footnote {
  font-size: .84rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.job {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}

.job:first-child {
  margin-top: 1rem;
}

.stamp {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 3.3rem;
  flex-shrink: 0;
  height: 3.4rem;
  background: #f0f1e6;
  border-radius: .4rem;
  text-transform: uppercase;
  font-size: .65rem;
  letter-spacing: .04em;
}

.stamp b {
  font: 1.55rem/1 var(--serif);
}

.job .status {
  margin-left: auto;
}

.status.booked {
  background: #e0e9ed;
  color: #294c5c;
}

.empty-copy {
  margin: 1.4rem 0;
  color: var(--muted);
}

.automations,.attention {
  margin-top: 1.1rem;
}

.source {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

.source h4 {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.source p {
  font-size: .9rem;
  margin: .2rem 0;
  color: var(--muted);
}

.source .tools {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .65rem;
}

.tools button {
  font-size: .84rem;
}

.attention,#notice:not(:empty),.form-error:not(:empty) {
  background: #fbefda;
  border: 1px solid #e4cf9e;
  border-radius: .5rem;
  color: #654116;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.attention h3 {
  font-size: 1.3rem;
}

.attention p {
  margin: .4rem 0;
}

.month-nav {
  margin: 1rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  text-align: center;
  gap: 2px;
}

.grid span,.grid button {
  font-size: .9rem;
  min-height: 2rem;
  display: grid;
  place-items: center;
}

.grid button {
  border: 1px solid var(--line);
  padding: .1rem;
  background: var(--sage);
  border-bottom: 3px solid var(--green);
}

.grid button[aria-pressed=true] {
  background: var(--green);
  color: white;
}

.grid .weekday {
  font-size: .75rem;
  color: var(--muted);
}

.grid .today {
  outline: 1px solid var(--ochre);
  outline-offset: -2px;
  border-radius: .25rem;
}

dialog {
  width: min(36rem,calc(100% - 1.5rem));
  max-height: 90dvh;
  border: 1px solid #aebbac;
  border-radius: .85rem;
  padding: clamp(1.1rem,3vw,2rem);
  color: var(--ink);
  background: var(--card);
  overflow: auto;
}

dialog::backdrop {
  background: rgb(22 42 33 / .55);
}

.dialog-top {
  margin-bottom: 1.1rem;
}

.close {
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.4rem;
  background: transparent;
}

label,fieldset {
  display: grid;
  gap: .3rem;
  margin: 0 0 .9rem;
}

label>span,legend {
  font-size: .88rem;
  font-weight: 600;
}

input,textarea,select {
  width: 100%;
  min-width: 0;
  border: 1px solid #aebbac;
  border-radius: .32rem;
  color: var(--ink);
  background: white;
  padding: .55rem .6rem;
}

input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--green);
}

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
  margin: 0 0 .4rem;
}

fieldset .pair label {
  margin-bottom: 0;
}

.pair,.checks {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .65rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: .88rem;
}

.actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.hint {
  margin: 0 0 1rem;
  font-size: .92rem;
}

#preview {
  margin-top: 1.1rem;
}

#preview ul,details ul {
  padding-left: 1.2rem;
}

details {
  margin-top: .6rem;
  font-size: .88rem;
}

summary {
  cursor: pointer;
  color: var(--green);
}

@media (max-width:760px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .heading {
    display: block;
  }

  #today {
    display: block;
    margin-top: .7rem;
  }

  .property-list {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
  }

  .library .wide {
    width: auto;
  }

  .library {
    padding: 1rem;
  }

  .property-head {
    align-items: flex-start;
  }

  .heading {
    margin-bottom: 1rem;
  }

}

@media (max-width:420px) {
  .pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .property-head,.agenda .section-title {
    flex-wrap: wrap;
  }

  .job {
    gap: .6rem;
  }

  .bar {
    height: 3.5rem;
  }

  .specs {
    margin-bottom: 1rem;
  }

  .panel {
    padding: 1rem;
  }

}
