@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --color-primary: #d5a75d;
  --color-primary-contrast: #17231c;
  --color-bg: #24372f;
  --color-surface: #24372f;
  --color-text: #f4f0df;
  --color-muted: #ddd9c7;
  --color-line: #d5d1bd;
  --color-soft: #293c32;
  --color-green: #314a3b;
  --color-yellow: #72512b;
  --color-hero-accent: #e3bd79;
  --color-hero-muted: #e8e2ce;
  --color-navy: #172720;
  --skin-classic-primary: #d5a75d;
  --skin-classic-bg: #24372f;
  --skin-rose-primary: #e7a2b5;
  --skin-rose-primary-contrast: #291820;
  --skin-rose-bg: #382832;
  --skin-rose-text: #fff0f3;
  --skin-rose-muted: #e6cad2;
  --skin-rose-line: #cbaab4;
  --skin-rose-soft: #46313d;
  --skin-rose-green: #4e3945;
  --skin-rose-yellow: #775061;
  --skin-rose-hero-accent: #f0bdcc;
  --skin-rose-hero-muted: #f5dce4;
  --skin-rose-navy: #281d25;
  --skin-tide-primary: #79c9d0;
  --skin-tide-primary-contrast: #10272b;
  --skin-tide-bg: #20373d;
  --skin-tide-text: #eaf8f7;
  --skin-tide-muted: #c8e0df;
  --skin-tide-line: #a4c7c8;
  --skin-tide-soft: #29444a;
  --skin-tide-green: #31535a;
  --skin-tide-yellow: #42646a;
  --skin-tide-hero-accent: #a1e1e3;
  --skin-tide-hero-muted: #d1eeee;
  --skin-tide-navy: #152b31;
  --skin-violet-primary: #c4a4f2;
  --skin-violet-primary-contrast: #251a33;
  --skin-violet-bg: #30283d;
  --skin-violet-text: #f5efff;
  --skin-violet-muted: #d9cde9;
  --skin-violet-line: #c2b0d6;
  --skin-violet-soft: #3b314a;
  --skin-violet-green: #463858;
  --skin-violet-yellow: #5a4568;
  --skin-violet-hero-accent: #ddc8ff;
  --skin-violet-hero-muted: #eee2ff;
  --skin-violet-navy: #241d30;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
  color-scheme: dark;
}

body[data-skin="rose"] {
  --color-primary: var(--skin-rose-primary);
  --color-primary-contrast: var(--skin-rose-primary-contrast);
  --color-bg: var(--skin-rose-bg);
  --color-surface: var(--skin-rose-bg);
  --color-text: var(--skin-rose-text);
  --color-muted: var(--skin-rose-muted);
  --color-line: var(--skin-rose-line);
  --color-soft: var(--skin-rose-soft);
  --color-green: var(--skin-rose-green);
  --color-yellow: var(--skin-rose-yellow);
  --color-hero-accent: var(--skin-rose-hero-accent);
  --color-hero-muted: var(--skin-rose-hero-muted);
  --color-navy: var(--skin-rose-navy);
  background-image: none;
}

body[data-skin="tide"] {
  --color-primary: var(--skin-tide-primary);
  --color-primary-contrast: var(--skin-tide-primary-contrast);
  --color-bg: var(--skin-tide-bg);
  --color-surface: var(--skin-tide-bg);
  --color-text: var(--skin-tide-text);
  --color-muted: var(--skin-tide-muted);
  --color-line: var(--skin-tide-line);
  --color-soft: var(--skin-tide-soft);
  --color-green: var(--skin-tide-green);
  --color-yellow: var(--skin-tide-yellow);
  --color-hero-accent: var(--skin-tide-hero-accent);
  --color-hero-muted: var(--skin-tide-hero-muted);
  --color-navy: var(--skin-tide-navy);
  background-image: none;
}

body[data-skin="violet"] {
  --color-primary: var(--skin-violet-primary);
  --color-primary-contrast: var(--skin-violet-primary-contrast);
  --color-bg: var(--skin-violet-bg);
  --color-surface: var(--skin-violet-bg);
  --color-text: var(--skin-violet-text);
  --color-muted: var(--skin-violet-muted);
  --color-line: var(--skin-violet-line);
  --color-soft: var(--skin-violet-soft);
  --color-green: var(--skin-violet-green);
  --color-yellow: var(--skin-violet-yellow);
  --color-hero-accent: var(--skin-violet-hero-accent);
  --color-hero-muted: var(--skin-violet-hero-muted);
  --color-navy: var(--skin-violet-navy);
  background-image: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: var(--color-primary) color-mix(in srgb, var(--color-surface) 70%, var(--color-bg));
  scrollbar-width: auto;
  background: var(--color-bg);
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--color-surface) 70%, var(--color-bg));
}

html::-webkit-scrollbar-thumb {
  border: 3px solid color-mix(in srgb, var(--color-surface) 70%, var(--color-bg));
  border-radius: var(--radius);
  background: var(--color-primary);
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--color-hero-accent);
}

/* Remove sharp seams between sections and glass surfaces. */
.task-row + .task-row {
  border-top-color: color-mix(in srgb, var(--color-text) 0.25%, transparent);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--color-bg);
  background-image: url('/background.svg');
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  text-shadow: 0 1px 5px color-mix(in srgb, var(--color-bg) 18%, transparent);
}

h1,
h2,
h3,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 400 !important;
  letter-spacing: -.035em;
}

h1 {
  text-shadow: 0 2px 12px color-mix(in srgb, var(--color-bg) 36%, transparent);
}

.font-extrabold,
.font-bold,
.font-semibold {
  font-weight: 500 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

.line-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0 auto .25rem;
}

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

button {
  cursor: pointer;
}

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

/* Barely-there glass: let the background do most of the work. */
.card,
main section.card,
main article.card {
  border: 1px solid color-mix(in srgb, var(--color-text) 0.35%, transparent) !important;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface) 1.5%, transparent) !important;
  box-shadow: 0 4px 28px color-mix(in srgb, var(--color-bg) 2%, transparent) !important;
  backdrop-filter: blur(14px) saturate(105%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(105%) !important;
}

.soft-button,
.field,
.photo-picker,
.rounded-xl.border,
article.rounded-xl.border,
#calendar>div,
#embed-area,
#embed-area>div {
  border-color: color-mix(in srgb, var(--color-text) 0.35%, transparent) !important;
  background-color: color-mix(in srgb, var(--color-surface) 1.5%, transparent) !important;
  box-shadow: 0 3px 22px color-mix(in srgb, var(--color-bg) 2%, transparent) !important;
  backdrop-filter: blur(14px) saturate(105%);
  -webkit-backdrop-filter: blur(14px) saturate(105%);
}

.soft-button {
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-text) 3%, transparent);
  border-radius: var(--radius);
}

.field {
  width: 100%;
  padding: 12px 14px;
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-text) 4%, transparent);
  border-radius: var(--radius);
  outline: none;
}

.field::placeholder {
  color: color-mix(in srgb, var(--color-muted) 78%, transparent);
}

.field:focus {
  border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.primary-button {
  color: var(--color-primary);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  transition: color .18s ease, transform .18s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  color: var(--color-hero-accent);
}

.nav-link {
  color: var(--color-muted);
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius);
  color: var(--color-muted);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.side-link:hover,
.side-link.active {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}

.side-link:hover {
  transform: translateX(2px);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-primary) 9%, transparent);
  color: var(--color-primary);
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--color-text) 10%, transparent);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
  transition: width .3s ease;
}

.task-row+.task-row {
  border-top: 1px solid color-mix(in srgb, var(--color-text) 2%, transparent);
}

.desktop-sidebar {
  border: 0 !important;
  background: color-mix(in srgb, var(--color-surface) 1.5%, transparent) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(105%);
  -webkit-backdrop-filter: blur(18px) saturate(105%);
}

.desktop-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.desktop-sidebar .side-link {
  min-height: 46px;
}

main>header {
  border-color: color-mix(in srgb, var(--color-text) 0.25%, transparent) !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

main section.card,
main article.card {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* Inline decorative fills stay nearly transparent as well. */
[style*="background:var(--color-bg)"],
[style*="background: var(--color-bg)"],
[style*="background:var(--color-navy)"],
[style*="background: var(--color-navy)"],
[style*="background:var(--color-surface)"],
[style*="background: var(--color-surface)"],
[style*="background:var(--color-soft)"],
[style*="background: var(--color-soft)"] {
  background: color-mix(in srgb, var(--color-surface) 4%, transparent) !important;
  box-shadow: none !important;
  border-color: color-mix(in srgb, var(--color-text) 2%, transparent) !important;
  color: var(--color-text) !important;
}

.rounded-sm,
.rounded,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl {
  border-radius: var(--radius) !important;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.photo-picker {
  position: fixed;
  z-index: 40;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(19rem, calc(100vw - 2.5rem));
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 3%, transparent);
  border-radius: var(--radius);
  color: var(--color-text);
  text-shadow: none;
}

.photo-picker summary {
  cursor: pointer;
  color: var(--color-muted);
  font-size: .75rem;
  letter-spacing: .06em;
  list-style: none;
  text-transform: uppercase;
}

.photo-picker summary::-webkit-details-marker {
  display: none;
}

.photo-picker:not([open]) {
  width: auto;
  padding: .6rem .85rem;
}

.photo-picker[open] summary {
  margin-bottom: .7rem;
}

.photo-picker-label {
  display: block;
  margin-bottom: .65rem;
  color: var(--color-muted);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photo-picker-actions {
  display: flex;
  gap: .5rem;
}

.photo-picker-button,
.photo-picker-reset {
  min-height: 2.5rem;
  padding: .55rem .8rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-text);
  font-size: .85rem;
  font-weight: 500;
}

.photo-picker-reset {
  background: transparent;
  color: var(--color-text);
  border-color: color-mix(in srgb, var(--color-text) 4%, transparent);
}

.photo-picker-button:hover,
.photo-picker-reset:hover {
  filter: brightness(1.08);
}

.photo-picker-message {
  margin-top: .6rem;
  color: var(--color-muted);
  font-size: .75rem;
  line-height: 1.4;
}

.photo-picker-reset[hidden] {
  display: none;
}

@media (max-width: 767px) {
  body {
    background-attachment: scroll;
  }

  .desktop-sidebar {
    display: none !important;
  }

  body>nav.fixed {
    border-top: 0 !important;
    background: color-mix(in srgb, var(--color-surface) 5%, transparent) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px) saturate(105%);
    -webkit-backdrop-filter: blur(16px) saturate(105%);
  }

  .photo-picker {
    right: .75rem;
    bottom: 5.5rem;
  }
}

.scroll-controls {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transform: translateY(-50%);
}

.scroll-control {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--color-bg) 32%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  touch-action: none;
  user-select: none;
}

.scroll-control:hover,
.scroll-control:active {
  border-color: color-mix(in srgb, var(--color-primary) 65%, transparent);
  background: color-mix(in srgb, var(--color-primary) 18%, var(--color-surface));
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .scroll-controls {
    top: 48%;
    right: .4rem;
  }

  .scroll-control {
    width: 2rem;
    height: 2rem;
  }
}
