:root {
  --ink: #492039;
  --wine: #621338;
  --rose: #c77c82;
  --cream: #faf6ed;
  --line: #e6d9cf;
  --muted: #785f6d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.65 system-ui, sans-serif;
}

a { color: var(--wine); }

/* Page frame */
header, main, footer {
  max-width: 1120px;
  margin: auto;
  padding: 28px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 55px;
}
footer span { margin-right: auto; }

.brand {
  font: 700 25px Georgia, serif;
  text-decoration: none;
}
.brand small {
  font: 11px system-ui;
  display: block;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.badge {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 13px;
}

/* Type */
h1, h2, h3 {
  font-family: Georgia, serif;
  line-height: 1.15;
}
h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 500;
  margin: 15px 0 24px;
}
h2 { font-size: 28px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #94694b;
}
.muted { color: var(--muted); }

.hero {
  padding: 60px 0;
  max-width: 780px;
}
.hero p {
  max-width: 620px;
  font-size: 19px;
}

/* Buttons and form controls */
.button, button {
  display: inline-block;
  background: var(--wine);
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 12px 20px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: wait; }
.secondary {
  background: white;
  color: var(--wine);
  border: 1px solid var(--line);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
}
input, textarea {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 90px; }
input[type=checkbox] {
  display: inline;
  width: auto;
  margin-right: 8px;
}
select {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  margin-left: 7px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Cards and layout */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
}
.card h3 { font-size: 23px; }
.workspace {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
}
.notice {
  border-left: 3px solid var(--rose);
  padding: 10px 18px;
  background: #f4eae4;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 500px;
  background: var(--cream);
  color: var(--ink);
}

/* Legal pages */
.legal { max-width: 790px; }
.legal h1 { font-size: 48px; }
.legal h2 { font-size: 25px; margin-top: 38px; }

/* Calendar */
.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.calendar, .weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.weekdays {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 8px;
}
.day {
  min-height: 105px;
  background: #fffdf9;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  overflow: hidden;
}
.day.today { border-color: var(--rose); }
.day.selected { outline: 2px solid var(--wine); }
.cal-pin {
  display: block;
  font-size: 11px;
  background: #f0e6e9;
  border-radius: 3px;
  margin-top: 4px;
  padding: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-pin.posted { background: #e3ecdd; }
.cal-pin.draft { background: #f0ece5; }

/* Pin list */
.pin { margin-bottom: 18px; }
.pin h3 { margin: 8px 0; }
.status {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.destination {
  overflow-wrap: anywhere;
  font-size: 13px;
}

/* Account */
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.account button { padding: 7px 13px; font-size: 13px; }
.sign-in {
  max-width: 460px;
  margin: 40px 0;
}
.sign-in form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.sign-in label { flex: 1 1 240px; margin: 0; }

@media (max-width: 760px) {
  .grid, .workspace { grid-template-columns: 1fr; }
  header, main, footer { padding: 20px; }
  header .badge { display: none; }
  .hero { padding: 35px 0; }
  h1 { font-size: 47px; }
}
@media (max-width: 600px) {
  .day { min-height: 67px; padding: 4px; }
  .calendar-wrap { padding: 12px !important; }
  .cal-pin { font-size: 9px; }
  .calendar-heading { flex-wrap: wrap; }
}
