:root {
  --font-family-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  /* Style scrollbar for all browsers */
}
:root ::-webkit-scrollbar {
  width: 8px; /* width of the entire scrollbar */
}
:root ::-webkit-scrollbar-track {
  background: transparent; /* color of the tracking area */
}
:root ::-webkit-scrollbar-thumb {
  background-color: black; /* color of the scroll thumb */
  border-radius: 4px; /* roundness of the scroll thumb */
  border: none; /* creates padding around scroll thumb */
}
:root ::-webkit-scrollbar-button {
  display: none; /* ensures the up and down buttons are removed */
}
:root {
  /* Firefox */
}
:root * {
  scrollbar-width: thin; /* "auto" or "thin" */
  scrollbar-color: black transparent; /* thumb and track color */
}
:root {
  --line-height-headers: 1.1;
  --line-height-body: 1.5;
  --font-size-xs: 0.75rem;
  --font-size-s: 0.875rem;
  --font-size-m: 1rem;
  --font-size-l: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-xxl: 1.5rem;
  --font-size-xxxl: 2rem;
  --font-size-xxxxl: 2.5rem;
  --color-text-header: hsl(0, 1%, 16%);
  --color-text-body: hsl(0, 5%, 25%);
  --color-text-muted: hsl(0, 1%, 44%);
  --space-xxxs: 0.25rem;
  --space-xxs: 0.375rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 2.5rem;
  --space-xxxl: 3rem;
  --space-xxxxl: 4rem;
  cursor: default;
  --color-primary: hsl(350, 67%, 50%);
  --color-primary-rotate: hsl(10, 73%, 54%);
  --color-primary-bg: hsl(0, 85%, 96%);
  --color-secondary: hsl(101, 45%, 56%);
  --color-secondary-rotate: hsl(120, 45%, 56%);
  --color-tertiary: hsl(49, 89%, 64%);
  --color-glint: hsl(210, 100%, 82%);
  --color-white: hsl(0, 0%, 100%);
  --color-background: hsl(30, 50%, 98%);
  --color-light: hsl(0, 6%, 93%);
  --color-dark: var(--color-text-header);
  --border-radius: 0.375rem;
  --border: solid 2px var(--color-light);
  --shadow-large: 2px 4px 10px hsl(0 0% 0% / 0.1);
  --shadow-small: 1px 3px 6px hsl(0 0% 0% / 0.1);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  overflow-y: auto;
  height: 100%;
}

@font-face {
  font-family: "ArchitectsDaughter";
  src: url(/assets/ArchitectsDaughter-8f601d2a6f92c52ae552a49bd50bfb6d013937665f1899b1e11629d4e71ac3be.ttf);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--color-background);
  color: var(--color-text-body);
  line-height: var(--line-height-body);
  font-family: var(--font-family-sans);
  font-family: "ArchitectsDaughter";
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-header);
  line-height: var(--line-height-headers);
}

h1 {
  font-size: var(--font-size-xxxl);
}

h2 {
  font-size: var(--font-size-xxl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-l);
}

a {
  color: black;
  text-decoration: none;
  transition: color 200ms;
}
a:hover, a:focus, a:active {
  color: rgb(49, 49, 49);
}

.hidden {
  display: none;
}

@keyframes appear-then-fade {
  0%, 100% {
    opacity: 0;
  }
  5%, 60% {
    opacity: 1;
  }
}
.btn {
  display: inline-block;
  padding: var(--space-xxs) var(--space-m);
  border-radius: var(--border-radius);
  background-origin: border-box;
  background-color: transparent;
  border: solid 2px transparent;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: filter 400ms, color 200ms;
}
.btn:hover, .btn:focus, .btn:focus-within, .btn:active {
  transition: filter 250ms, color 200ms;
}
.btn--primary {
  color: var(--color-white);
  background-image: linear-gradient(to right, var(--color-primary), var(--color-primary-rotate));
}
.btn--primary:hover, .btn--primary:focus, .btn--primary:focus-within, .btn--primary:active {
  color: var(--color-white);
  filter: saturate(1.4) brightness(115%);
}
.btn--secondary {
  color: var(--color-white);
  background-image: linear-gradient(to right, var(--color-secondary), var(--color-secondary-rotate));
  padding: 0px;
}
.btn--secondary:hover, .btn--secondary:focus, .btn--secondary:focus-within, .btn--secondary:active {
  color: var(--color-white);
  filter: saturate(1.2) brightness(110%);
}
.btn--light {
  color: var(--color-dark);
  background-color: var(--color-light);
  padding: 0px;
}
.btn--light:hover, .btn--light:focus, .btn--light:focus-within, .btn--light:active {
  color: var(--color-dark);
  filter: brightness(92%);
}
.btn--light--no-padding {
  padding: 0px;
}
.btn--dark {
  color: var(--color-white);
  border-color: var(--color-dark);
  background-color: var(--color-dark);
}
.btn--dark:hover, .btn--dark:focus, .btn--dark:focus-within, .btn--dark:active {
  color: var(--color-white);
}

.error-message {
  width: 100%;
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
  padding: var(--space-xs);
  border-radius: var(--border-radius);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.form__group {
  flex: 1;
}
.form__group--right {
  align-self: end;
}
.form__input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: var(--space-xxs) var(--space-xs);
  border: 2px solid black;
  border-radius: var(--border-radius);
  outline: none;
  transition: box-shadow 250ms;
}
.form__input:focus {
  box-shadow: 0 0 0 2px var(--color-glint);
}
.form__input--invalid {
  border-color: var(--color-primary);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.calendar-and-feed {
  display: block;
}

@media (min-width: 900px) {
  .calendar-and-feed {
    display: flex;
    align-items: flex-start;
  }
}
.feed {
  /* falls below calendar on mobile by default due to block flow */
}

/* Onboarding: subtle blink/pulse for visibility nudge */
@keyframes blinkPulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
}
.visibility-nudge {
  display: inline-block;
  animation: blinkPulse 1.4s ease-in-out infinite;
  margin-right: 6px;
  margin-bottom: 12px;
}

.my-one-thing {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 80%;
  min-height: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: var(--space-s);
  background-color: var(--color-background);
  border: 5px solid black;
  border-radius: 25px;
  box-shadow: var(--shadow-small);
  margin-bottom: var(--space-m);
  padding: 6px 20px;
}
@media (min-width: 50rem) {
  .my-one-thing {
    padding: var(--space-xs) var(--space-m);
  }
}
.my-one-thing__actions {
  display: flex;
  flex: 0 0 auto;
  align-self: flex-start;
  gap: var(--space-xs);
}
.my-one-thing--grid {
  position: relative;
  height: 40px;
}

#similar-one-things {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: var(--space-xxs) var(--space-xs);
  border: 2px solid black;
  border-radius: var(--border-radius);
  outline: none;
  transition: box-shadow 250ms;
  height: 108px;
  overflow-y: auto;
  font-size: 14px;
  margin-bottom: 10px;
}
#similar-one-things:focus {
  box-shadow: 0 0 0 2px var(--color-glint);
}
#similar-one-things ul ol {
  border-bottom: 1px solid black;
  padding-top: 8px;
}

.related-title {
  width: fit-content;
  padding: 0px 5px 4px 5px;
  border-radius: 5px;
}
.related-title__completed {
  background: linear-gradient(60deg, #B2F2BB, transparent);
}
.related-title__failed {
  background: linear-gradient(60deg, #FFC9C9, transparent);
}

#quote {
  font-size: 12px;
  font-style: italic;
  color: #333;
  margin-bottom: 10px;
  margin-left: 20px;
  margin-right: 20px;
  height: 120px;
  max-height: 120px;
  overflow-y: auto;
}

.turbo-progress-bar {
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-rotate));
}

.flash {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  max-width: 100%;
  width: max-content;
  padding: 0 var(--space-m);
}
.flash__message {
  font-size: var(--font-size-s);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-m);
  background-color: var(--color-dark);
  animation: appear-then-fade 4s both;
  border-radius: 999px;
}

.empty-state {
  padding: var(--space-m);
  border: var(--border);
  border-style: dashed;
  text-align: center;
}
.empty-state__text {
  font-size: var(--font-size-l);
  color: var(--color-text-header);
  margin-bottom: var(--space-l);
  font-weight: bold;
}
.empty-state--only-child {
  display: none;
}
.empty-state--only-child:only-child {
  display: revert;
}

.red-svg {
  border: 2px solid black !important;
  background-color: #FFC9C9 !important;
  border-radius: var(--border-radius);
}
.red-svg:focus {
  box-shadow: 0 0 0 2px var(--color-glint);
}

.green-svg {
  border: 2px solid black !important;
  background-color: #B2F2BB !important;
  border-radius: var(--border-radius);
}
.green-svg:focus {
  box-shadow: 0 0 0 2px var(--color-glint);
}

dialog {
  width: 80vw;
  margin: auto;
  border-radius: var(--border-radius);
}
dialog::backdrop {
  background: rgb(0, 0, 0);
  opacity: 0.4;
}
dialog header {
  display: flex;
  align-items: center;
}
dialog header h2 {
  flex: 0 1 100%;
}

.container {
  width: 100%;
  padding-right: var(--space-xs);
  padding-left: var(--space-xs);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 50rem) {
  .container {
    padding-right: var(--space-m);
    padding-left: var(--space-m);
    max-width: 60rem;
  }
}

header {
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-m);
  margin-bottom: var(--space-l);
}
header h1, header span {
  width: auto;
}
header h1 {
  text-align: left;
  margin-left: var(--space-l);
}
header span {
  margin-top: var(--space-s);
  display: flex;
  justify-content: end;
  margin-right: var(--space-l);
}
@media (min-width: 50rem) {
  header {
    display: flex;
    flex-direction: row;
    gap: var(--space-s);
    justify-content: space-between;
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-l);
    align-items: flex-start;
  }
  header h1, header span {
    width: 100%;
  }
  header h1 {
    text-align: left;
    margin-left: 100px;
  }
  header span {
    text-align: right;
    margin-right: 100px;
  }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  /* 7 columns */
  grid-template-rows: repeat(7, 1fr);
  /* 6 rows */
  gap: 9px;
  /* Adjust gap between grid items */
  max-width: 600px;
}

.grid-item {
  display: flex;
  justify-content: flex-end;
  color: black;
  background-color: #ccc;
  border: 1px solid #000;
  padding: 4px 8px 14px 8px;
  border-radius: var(--border-radius);
  max-width: 74px;
}
.grid-item--day {
  display: flex;
  justify-content: center;
  align-items: end;
}
.grid-item--spacer {
  background-color: rgba(204, 204, 204, 0);
}
