:root {
  --ink: #171512;
  --muted: #746e65;
  --gold: #b58a45;
  --gold-light: #faf5eb;
  --line: #eaeaea;
  --soft: #f7f7f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.masthead {
  height: 96px;
  max-width: 1440px;
  padding: 0 60px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.monogram img {
  height: 45px;
  width: 45px;
  object-fit: contain;
}
.wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.wordmark img {
  display: block;
  width: 226px;
  height: 76px;
  object-fit: contain;
}
.header-account {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.navigation {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 46px;
  height: 66px;
  position: sticky;
  top: 0;
  background: #fffffff5;
  backdrop-filter: blur(14px);
  z-index: 10;
}
.navigation a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  position: relative;
  color: var(--muted);
}
.navigation a.active {
  color: var(--ink);
}
.navigation a.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  left: 0;
  right: 0;
}
.navigation .studio-tab {
  color: var(--gold);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 60px;
}
.page {
  padding: 48px 0 64px;
  min-height: calc(100svh - 240px);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  gap: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 12px;
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  margin: 0;
}
h1 {
  font-size: 42px;
  line-height: 1.2;
}
h2 {
  font-size: 29px;
  line-height: 1.3;
}
p {
  line-height: 1.65;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 22px;
  background: #fff;
  min-height: 48px;
  font-size: 12px;
  font-weight: 500;
}
.button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.button.subtle {
  background: white;
}
.button:hover {
  border-color: var(--gold);
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  border-radius: 50%;
}
.icon-button:hover {
  background: var(--gold-light);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 23px;
}
.look {
  min-width: 0;
}
.look-photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--soft);
}
.look-photo:after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #d8bc81a0;
  pointer-events: none;
}
.look-photo > .main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.favorite-button {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #ffffffd9;
  z-index: 1;
  width: 36px;
  height: 36px;
}
.favorite-button.selected {
  color: var(--gold);
}
.favorite-button.selected svg {
  fill: #b58a4520;
}
.angles {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 7px;
  z-index: 1;
}
.angle {
  padding: 0;
  border: 1px solid #ffffffa0;
  width: 36px;
  height: 47px;
  background: #fff;
  overflow: hidden;
  border-radius: 4px;
}
.angle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.angle.active {
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--gold);
}
.look-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 13px 0;
}
.look-caption h3 {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.try-button {
  white-space: nowrap;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 12px;
  padding: 8px;
}
.status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.status:empty {
  display: none;
}
.empty {
  padding: 70px 20px;
  text-align: center;
  background: var(--soft);
  border-radius: 12px;
}
.empty h2 {
  margin-bottom: 12px;
}
.empty p {
  color: var(--muted);
}
.empty .button {
  margin-top: 12px;
}
.footer {
  max-width: 1320px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.studio-heading h1 {
  font-size: 30px;
}
.studio-page {
  padding-top: 28px;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 80px;
  align-items: center;
  max-width: 1060px;
  margin: auto;
}
.comparison {
  position: relative;
  width: 100%;
  height: min(62svh, 660px);
  background: #f7f7f7;
  overflow: hidden;
  --split: 50%;
}
.comparison img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  inset: 0;
}
.comparison #afterImage {
  clip-path: inset(0 0 0 var(--split));
}
.comparison input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}
.compare-divider {
  position: absolute;
  left: var(--split);
  top: 0;
  bottom: 0;
  width: 1px;
  background: #fff;
  box-shadow: 0 0 2px #0005;
  pointer-events: none;
}
.compare-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 18px;
  letter-spacing: 4px;
  padding-left: 4px;
}
.compare-labels {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.compare-labels span {
  font-size: 10px;
  padding: 6px 10px;
  background: #ffffffd9;
  border-radius: 4px;
}
.studio-controls h2 {
  font-size: 38px;
  margin: 0 0 28px;
}
.studio-controls > .button,
.studio-controls > div > .button {
  width: 100%;
  margin-bottom: 12px;
}
.studio-notice {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 18px;
}
.model-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--soft);
  border: 0;
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 16px;
}
.model-choice img {
  height: 55px;
  width: 44px;
  object-fit: cover;
  border-radius: 4px;
}
.model-choice img:not([src]) {
  display: none;
}
.model-choice span:first-of-type {
  flex: 1;
}
.field {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--soft);
  color: var(--ink);
  min-width: 0;
}
.field textarea {
  resize: vertical;
}
.muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 28px;
  width: min(440px, calc(100vw - 32px));
  max-height: 85svh;
  box-shadow: 0 24px 100px #17151225;
  color: var(--ink);
}
dialog::backdrop {
  background: #17151266;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}
.dialog-head h2 {
  font-size: 27px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.wide-dialog {
  width: min(940px, calc(100vw - 32px));
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.model-option {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
}
.model-option img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 8px;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.7fr);
  gap: 60px;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.calendar-header h2 {
  font-size: 26px;
  text-transform: capitalize;
}
.calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  display: grid;
}
.weekday {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 12px 0;
}
.day {
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  min-height: 88px;
  padding: 9px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.day-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.day.today .day-number {
  background: var(--ink);
  border-radius: 50%;
  color: white;
}
.day.selected {
  background: var(--gold-light);
}
.day.outside {
  opacity: 0.3;
}
.day-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}
.day-marker {
  color: #2f6b54;
  padding: 2px;
}
.day-marker svg {
  width: 15px;
  height: 15px;
}
.day-marker.due {
  color: var(--gold);
  border: 1px dashed var(--gold);
  border-radius: 4px;
}
.calendar-legend {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0;
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.care-details {
  padding-top: 8px;
}
.care-details h2 {
  font-size: 22px;
  margin-bottom: 18px;
}
.care-log {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.care-log .log-text {
  flex: 1;
}
.care-log small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  white-space: pre-wrap;
}
.care-log.due {
  color: var(--gold);
}
.care-details > .button {
  margin-top: 20px;
  width: 100%;
}
.profile-shell {
  max-width: 440px;
  margin: 10px auto;
}
.profile-shell h1 {
  margin-bottom: 30px;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.auth-tabs button {
  border: 0;
  background: none;
  flex: 1;
  padding: 12px;
  color: var(--muted);
}
.auth-tabs button.active {
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
}
.auth-form .button {
  width: 100%;
  margin-bottom: 12px;
}
.auth-providers {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-providers .button {
  flex: 1;
}
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  padding: 13px 22px;
  z-index: 100;
  font-size: 12px;
  text-align: center;
}
.loading {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@media (min-width: 1500px) {
  .gallery {
    gap: 36px 30px;
  }
}
@media (max-width: 1000px) {
  main {
    padding: 0 28px;
  }
  .masthead {
    padding: 0 28px;
  }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .studio-layout {
    gap: 35px;
  }
  .calendar-layout {
    gap: 30px;
  }
  .footer {
    margin: 0 28px;
  }
}
@media (max-width: 640px) {
  body {
    padding-bottom: 74px;
  }
  .masthead {
    height: 76px;
    padding: 0 20px;
  }
  .monogram img {
    width: 36px;
    height: 36px;
  }
  .wordmark img {
    width: 175px;
    height: 60px;
  }
  .header-account span:last-child {
    display: none;
  }
  .navigation {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    gap: 0;
    height: calc(68px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-bottom: 0;
  }
  .navigation a {
    flex: 1;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    font-size: 9px;
  }
  .navigation a.active:after {
    bottom: auto;
    top: 0;
    left: 25%;
    right: 25%;
  }
  .navigation .studio-tab svg {
    width: 27px;
    height: 27px;
  }
  main {
    padding: 0 20px;
  }
  .page {
    padding: 25px 0 35px;
    min-height: calc(100svh - 210px);
  }
  h1 {
    font-size: 32px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  .section-heading {
    margin-bottom: 24px;
  }
  .section-heading > .button {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 40px;
  }
  .section-heading > .button svg {
    width: 16px;
    height: 16px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .look-photo:after {
    inset: 7px;
  }
  .favorite-button {
    right: 11px;
    top: 11px;
    width: 30px;
    height: 30px;
  }
  .favorite-button svg {
    width: 18px;
    height: 18px;
  }
  .angles {
    bottom: 13px;
    left: 13px;
    gap: 5px;
  }
  .angle {
    width: 27px;
    height: 36px;
  }
  .look-caption {
    align-items: flex-start;
    padding: 9px 0;
  }
  .look-caption h3 {
    font-size: 10px;
  }
  .try-button {
    font-size: 10px;
    padding: 2px;
  }
  .footer {
    margin: 0 20px;
    padding: 20px 0;
  }
  .studio-page {
    padding: 8px 0 16px;
  }
  .studio-heading {
    margin-bottom: 10px;
  }
  .studio-heading h1 {
    font-size: 25px;
  }
  .studio-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 460px;
  }
  .comparison {
    height: calc(100svh - 390px);
    min-height: 220px;
    max-height: 530px;
  }
  .studio-controls {
    width: 100%;
  }
  .studio-controls h2,
  .studio-controls > .eyebrow {
    display: none;
  }
  .studio-controls > .button,
  .studio-controls > div > .button {
    margin-bottom: 8px;
    padding: 11px;
  }
  .studio-notice {
    margin: 8px 0;
    font-size: 9px;
  }
  .model-choice {
    padding: 5px 10px;
    margin-bottom: 8px;
  }
  .model-choice img {
    height: 32px;
    width: 28px;
  }
  .studio-controls .field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  .studio-controls .field select {
    flex: 1;
    margin: 0;
    padding: 7px;
  }
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .day {
    min-height: 70px;
  }
  .weekday {
    font-size: 10px;
  }
  .calendar-header h2 {
    font-size: 23px;
  }
  .care-details {
    padding: 0;
  }
  .calendar-legend {
    margin-bottom: 0;
  }
  .toast {
    bottom: 90px;
  }
  .profile-shell {
    margin: 8px 0;
  }
  dialog {
    padding: 20px;
  }
  .studio-controls #resultControls {
    display: flex;
    gap: 8px;
  }
  .studio-controls #resultControls .button {
    font-size: 11px;
    flex: 1;
  }
  .studio-controls:has(#modelControls:not([hidden])) .studio-notice {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.comparison {
  aspect-ratio: 2/3;
  width: auto;
  max-width: 100%;
  justify-self: center;
}
.studio-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}
@media (max-width: 640px) {
  .comparison {
    width: auto;
    align-self: center;
    max-width: 100%;
  }
  .studio-controls:has(#modelControls:not([hidden])) .studio-notice {
    display: block;
  }
  .studio-page .comparison {
    height: calc(100svh - 420px);
    min-height: 190px;
  }
}
@media(max-width:640px){
 body:has(#studio:not([hidden])) .footer{display:none}
 .studio-page{height:calc(100svh - 144px - env(safe-area-inset-bottom));min-height:0;display:flex;flex-direction:column;padding-bottom:8px}
 .studio-layout{flex:1;min-height:0;width:100%}
 .studio-page .comparison{flex:1;min-height:120px;height:auto;width:100%;background:#f7f7f7}
 .studio-controls{flex-shrink:0}
 .studio-heading{flex-shrink:0}
}
