:root {
  --paper: #fffaf6;
  --ink: #232450;
  --muted: #494662;
  --purple: #363068;
  --lavender: #f3edf9;
  --line: #e6ddec;
  --error: #852b43;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, sans-serif;
}

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

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: .5rem 1rem;
  background: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.account-header {
  background: white;
  border-bottom: 1px solid var(--line);
}

.header-content,
.account-content {
  width: min(100% - 36px, 960px);
  margin-inline: auto;
}

.header-content,
.brand,
.account-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.header-content {
  justify-content: space-between;
  padding-block: 12px;
}

.brand {
  gap: 10px;
  font: bold 1.25rem Georgia, serif;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
}

.account-header nav {
  font-size: .9rem;
}

.account-content {
  padding-block: clamp(32px, 7vw, 72px);
  overflow-wrap: anywhere;
}

.account-form {
  max-width: 510px;
  margin-block: clamp(24px, 6vw, 64px);
  padding: clamp(20px, 5vw, 38px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

form {
  margin: 0;
}

.account-form label {
  font-weight: 650;
}

.lesson-options {
  margin-block: 24px;
  padding: 0;
  border: 0;
}

.lesson-options legend {
  margin-bottom: 8px;
  font-weight: 650;
}

.lesson-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding-block: 8px;
  cursor: pointer;
}

.lesson-options input {
  flex-shrink: 0;
  accent-color: var(--purple);
}

.account-form input:not([type="checkbox"], [type="radio"], [type="hidden"]) {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .65rem .8rem;
  border: 1px solid #827199;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.account-form input[aria-invalid="true"] {
  border-color: var(--error);
}

.helptext,
.account-email {
  color: var(--muted);
  font-size: .9rem;
}

.helptext {
  display: block;
  margin-top: .35rem;
}

.errorlist {
  color: var(--error);
}

button,
.action-link {
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--purple);
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.action-link {
  text-decoration: none;
}

button:hover,
.action-link:hover {
  background: #2a2258;
}

.text-button,
.text-button:hover {
  padding: .45rem 0;
  background: transparent;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.notices {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: .75rem 1rem;
  border-inline-start: 4px solid var(--purple);
  background: var(--lavender);
}

.notices .error {
  color: var(--error);
}

.session-heading {
  padding: clamp(20px, 4vw, 36px);
  border-radius: 16px;
  background: var(--lavender);
}

.session-heading p {
  margin: .5rem 0 0;
}

.session-section {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

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

.session-row,
.session-empty {
  padding: .9rem 0;
}

.session-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  border-bottom: 1px solid var(--line);
}

.session-empty {
  color: var(--muted);
}

.lesson-date {
  display: grid;
  gap: .2rem;
}

.lesson-date time {
  font-weight: 650;
}

.lesson-date span {
  color: var(--muted);
}

.account-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

.account-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
}

.policy-content {
  max-width: 780px;
  line-height: 1.7;
}

.policy-content h2 {
  margin-top: 2rem;
}

.policy-draft {
  padding: 1rem;
  border-left: 4px solid currentColor;
  background: #f4effa;
}

.email-addresses {
  padding: 0;
  margin: 1.5rem 0 .75rem;
  border: 0;
  min-width: 0;
}

.email-addresses legend {
  font-weight: 650;
  margin-bottom: .5rem;
}

.email-choice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.email-choice input {
  margin-top: .4rem;
  flex-shrink: 0;
  accent-color: var(--purple);
}

.email-choice strong,
.email-status {
  display: block;
  overflow-wrap: anywhere;
}

.email-status {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.secondary-button {
  color: var(--purple);
  background: white;
  border-color: var(--purple);
}

.secondary-button:hover {
  color: white;
}

.email-remove {
  margin-top: 1.5rem;
}

.email-remove summary {
  cursor: pointer;
  padding-block: .5rem;
}

.checkout-consent {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-consent legend {
  font-weight: 650;
}

.policy-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .95rem;
}

.checkout-consent label {
  font-weight: 400;
}

.checkout-consent input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
  accent-color: var(--purple);
}
