:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-deep: #eeeae0;
  --ink: #242620;
  --muted: #6d6f65;
  --line: #d9d6cc;
  --orange: #db7037;
  --orange-text: #a64d24;
  --orange-soft: #f4e2d6;
  --green: #526c55;
  --white: #fffefa;
  --shadow: 0 22px 60px rgb(36 38 32 / 9%);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  color: var(--ink);
}

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

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 89% 6%, rgb(219 112 55 / 5%), transparent 27rem),
    var(--paper);
  color: var(--ink);
}

body, button, input { font-family: var(--sans); }
button, input { font-size: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.hidden { display: none !important; }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  width: min(100% - 72px, 1440px);
  min-height: 92px;
  margin-inline: auto;
  border-bottom: 1px solid rgb(36 38 32 / 10%);
}

.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand img { width: 246px; height: 48px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  margin: 0 auto;
  padding: 0 30px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #66665e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .015em;
  transition: color .2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--orange);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }

.container { width: min(100% - 72px, 1220px); margin-inline: auto; }

.button,
button.primary,
button.secondary,
button.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.2;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button:hover, button.primary:hover, button.secondary:hover, button.icon-button:hover { transform: translateY(-1px); }
.button:active, button.primary:active, button.secondary:active, button.icon-button:active { transform: translateY(0); }

.button.primary, button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.primary:hover, button.primary:hover { background: #393c34; box-shadow: 0 8px 18px rgb(36 38 32 / 14%); }

.button.primary::after, button.primary::after {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: '';
  transform: rotate(45deg);
}

.button.secondary, button.secondary {
  border-color: #bdbbb1;
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover, button.secondary:hover { border-color: var(--ink); background: rgb(255 254 250 / 60%); }

.button.icon-button, button.icon-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: var(--line);
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 108px);
  min-height: 610px;
  padding-block: 72px 64px;
}

.hero-copy { max-width: 580px; padding-bottom: 14px; }

.eyebrow,
.workspace-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before, .workspace-heading .eyebrow::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: '';
}

.hero h1,
.workspace-heading h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 6.2vw, 86px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .98;
}

.hero h1 em,
.workspace-heading h1 em {
  color: var(--orange);
  font-weight: 400;
}

.hero-description {
  max-width: 430px;
  margin: 25px 0 29px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.search-form { max-width: 510px; }

.username-field {
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid #c8c5ba;
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.username-field:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(219 112 55 / 12%);
}

.username-field > span {
  padding-left: 17px;
  color: #9b998f;
  font-family: var(--serif);
  font-size: 20px;
}

.username-field input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.username-field input::placeholder { color: #aaa79e; }
.username-field .primary { align-self: stretch; min-width: 122px; margin: 5px; }

.form-error { min-height: 20px; margin: 8px 1px 0; color: #a74729; font-size: 12px; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 465px;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: 7%;
  width: 86%;
  height: 81%;
  border: 1px solid rgb(36 38 32 / 9%);
  content: '';
  transform: rotate(3.5deg);
}

.art-main, .art-secondary {
  position: absolute;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #e1ded5;
  background: #fffefa;
  box-shadow: var(--shadow);
}

.art-main { z-index: 1; top: 28px; left: 50%; width: 280px; height: 400px; transform: translateX(-50%) rotate(-2deg); }
.art-main img { width: 100%; height: 100%; object-fit: cover; }
.art-secondary { z-index: 2; right: 0; bottom: 19px; width: 180px; height: 240px; transform: rotate(5deg); }
.art-secondary img { width: 100%; height: 100%; object-fit: cover; }

.art-top, .art-bottom {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-shadow: 0 1px 12px rgb(0 0 0 / 35%);
}

.art-top { top: 21px; left: 22px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.art-top::before { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgb(219 112 55 / 30%); content: ''; }
.art-bottom { right: 20px; bottom: 20px; font-family: var(--serif); font-size: 17px; }
.art-caption { position: absolute; right: 3px; bottom: -9px; color: #77766e; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; transform: rotate(-1deg); }

.hero-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 23px 38px;
  border-top: 1px solid var(--line);
  color: #6c6b63;
  font-size: 11px;
  line-height: 1.55;
}

.hero-note::before { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--orange); content: ''; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 25px;
}

.section-heading h2, .archive-toolbar h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -.045em;
}

.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.account-result {
  margin: 38px 0 70px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgb(255 254 250 / 72%);
  box-shadow: 0 14px 38px rgb(36 38 32 / 4%);
}

.account-summary { display: flex; align-items: center; gap: 15px; padding-bottom: 23px; }
.account-summary > img { width: 58px; height: 58px; flex: 0 0 auto; border: 1px solid #ddd9ce; border-radius: 50%; object-fit: cover; }
.account-identity { min-width: 0; margin-right: auto; }
.account-identity h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -.025em; }
.account-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.account-summary .primary { flex: 0 0 auto; }

.tabs {
  display: flex;
  gap: 26px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}

.tabs button, .date-filters button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #85837a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: color .18s ease;
}

.tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: '';
  transform: scaleX(0);
  transition: transform .18s ease;
}

.tabs button.selected { color: var(--ink); }
.tabs button.selected::after { transform: scaleX(1); }

.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 22px; }

.media-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2dfd6;
  background: var(--paper-deep);
}

.media-image { position: relative; overflow: hidden; background: #e9e5da; }
.media-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.media-card:hover .media-image img { transform: scale(1.035); }
.media-grid .media-card[data-type="story"] .media-image { aspect-ratio: 9 / 16; }
.media-grid .media-card[data-type="post"] .media-image { aspect-ratio: 4 / 5; }
.media-overlay { position: absolute; inset: auto 0 0; padding: 35px 13px 12px; background: linear-gradient(transparent, rgb(15 16 14 / 56%)); color: white; }
.media-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.media-type { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.media-type::before { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); content: ''; }

.workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 62px 0 32px;
  border-bottom: 1px solid var(--line);
}

.workspace-heading .eyebrow { margin-bottom: 14px; }
.workspace-heading h1 { font-size: clamp(44px, 5vw, 65px); }
.workspace-heading p { max-width: 540px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.workspace-actions { display: flex; flex: 0 0 auto; gap: 10px; }

.workspace-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding: 38px 0 80px;
}

.sidebar { display: grid; gap: 22px; }
.tracker-card { padding: 22px; border: 1px solid var(--line); background: rgb(255 254 250 / 70%); }
.tracker-card > img { width: 58px; height: 58px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.tracker-card h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -.025em; }
.tracker-card > p { margin: 0; color: var(--muted); font-size: 11px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 7px 9px;
  border: 1px solid #d2ddcf;
  border-radius: 2px;
  background: #f1f5ef;
  color: #4a674d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.status-pill::before { width: 6px; height: 6px; border-radius: 50%; background: #6e916d; content: ''; }
.status-pill.paused { border-color: #e2d5c6; background: #f7f0e8; color: #8c603c; }
.status-pill.paused::before { background: var(--orange); }

.details-list { display: grid; grid-template-columns: 1fr auto; gap: 13px 10px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.details-list dt { color: #828077; font-size: 10px; }
.details-list dd { margin: 0; color: var(--ink); font-family: var(--mono); font-size: 9px; text-align: right; }
.tracker-actions { display: flex; gap: 8px; margin-top: 20px; }
.tracker-actions .button { min-height: 38px; flex: 1; padding-inline: 8px; font-size: 10px; }

.alert-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: rgb(255 254 250 / 70%);
  font-size: 11px;
  font-weight: 650;
}

.alert-setting input {
  position: relative;
  width: 35px;
  height: 20px;
  flex: 0 0 35px;
  margin: 0;
  border: 1px solid #c7c4b8;
  border-radius: 99px;
  appearance: none;
  background: #dedbd2;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.alert-setting input::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
  content: '';
  transition: transform .2s ease;
}

.alert-setting input:checked { border-color: var(--green); background: var(--green); }
.alert-setting input:checked::before { transform: translateX(15px); }
.alert-setting input:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.sidebar-note { padding: 16px 17px; border-left: 2px solid var(--orange); background: #f0ede5; color: #69685f; font-size: 10px; line-height: 1.65; }

.archive-panel { min-width: 0; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px 0 20px; }
.archive-toolbar h2 { font-size: 28px; }
.date-filters { display: flex; gap: 18px; }
.date-filters button { min-height: 36px; font-size: 10px; }
.date-filters button.selected { color: var(--orange); }
.date-filters button.selected::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 1px; background: currentColor; content: ''; }
.archive-group + .archive-group { margin-top: 34px; }
.date-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #77766e; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .035em; }
.date-heading::after { height: 1px; flex: 1; background: var(--line); content: ''; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.archive-grid .media-image { aspect-ratio: 9 / 16; }
.archive-grid .media-overlay { padding: 28px 10px 9px; }
.archive-grid .media-meta { font-family: var(--mono); font-size: 9px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 90px;
  border-top: 1px solid var(--line);
  color: #77766e;
  font-size: 10px;
}

.site-footer .brand img { width: 164px; height: 32px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a:hover { color: var(--orange); }

dialog.dialog {
  width: min(100% - 32px, 560px);
  max-height: min(90dvh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid #d9d5cb;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 100px rgb(0 0 0 / 25%);
}

dialog.dialog::backdrop { background: rgb(28 29 25 / 56%); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.04em; }
.dialog-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dialog-body { padding: 23px 28px; }
.dialog-actions { display: flex; justify-content: end; gap: 10px; padding: 17px 28px 24px; border-top: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan-card { display: flex; flex-direction: column; min-height: 180px; padding: 16px; border: 1px solid var(--line); background: var(--white); }
.plan-card:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.plan-card h3 { margin: 0 0 10px; font-size: 11px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 3px; font-family: var(--serif); font-size: 28px; letter-spacing: -.04em; }
.plan-price small { color: var(--muted); font-family: var(--sans); font-size: 9px; letter-spacing: 0; }
.plan-card p { margin: 10px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.plan-card button { min-height: 34px; margin-top: auto; padding-inline: 8px; font-size: 9px; }
.auth-options { display: grid; gap: 10px; }
.auth-options button { width: 100%; justify-content: center; }
.email-field { display: grid; gap: 8px; margin-top: 18px; color: #63635c; font-size: 11px; font-weight: 650; }
.email-field input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #cbc8be; border-radius: 2px; background: var(--white); color: var(--ink); }
.notice { padding: 12px 14px; border: 1px solid #e2d4c7; background: #f6eee6; color: #75563e; font-size: 11px; line-height: 1.6; }

dialog.story-dialog {
  width: min(100% - 24px, 1060px);
  height: min(92dvh, 760px);
  max-height: 92dvh;
  overflow: hidden;
  border-color: #42433d;
  background: #191a17;
  color: #f7f5ef;
}

.story-dialog::backdrop { background: rgb(10 10 9 / 84%); backdrop-filter: blur(7px); }
.viewer-top { position: absolute; z-index: 2; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: linear-gradient(#11120fbb, transparent); }
.viewer-top .icon-button { border-color: #ffffff50; color: white; }
.viewer-image { display: grid; width: 100%; height: 100%; place-items: center; }
.viewer-image img { width: 100%; height: 100%; object-fit: contain; }
.viewer-navigation { position: absolute; inset: 50% 18px auto; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.viewer-navigation button { width: 44px; height: 44px; border: 1px solid #ffffff65; border-radius: 50%; background: #171814a8; color: white; cursor: pointer; pointer-events: auto; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: 42px; }
  .art-main { width: 250px; height: 360px; }
  .art-secondary { right: -2px; width: 154px; height: 210px; }
  .workspace-layout { gap: 34px; }
}

@media (max-width: 900px) {
  .site-header { width: min(100% - 48px, 760px); min-height: 78px; }
  .brand img { width: 204px; height: 40px; }
  .main-nav { gap: 20px; padding-inline: 18px; }
  .main-nav a { font-size: 11px; }
  .container { width: min(100% - 48px, 760px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: auto; padding-block: 66px 30px; }
  .hero-copy { max-width: 620px; }
  .hero-art { justify-self: center; width: min(100%, 510px); min-height: 405px; margin-top: 25px; }
  .hero-art::before { top: 3%; height: 84%; }
  .art-main { top: 18px; width: 245px; height: 350px; }
  .art-secondary { right: 24px; bottom: 8px; width: 154px; height: 205px; }
  .art-caption { right: 24px; bottom: -15px; }
  .workspace-heading { padding-top: 48px; }
  .workspace-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .tracker-card { grid-row: span 2; }
  .sidebar-note { align-self: stretch; }
}

@media (max-width: 640px) {
  html, body { min-width: 320px; }
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; width: calc(100% - 32px); min-height: 0; padding: 13px 0 0; }
  .brand img { width: 176px; height: 35px; }
  .header-actions { gap: 7px; }
  .header-actions .button { min-height: 37px; padding: 0 11px; font-size: 10px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: clamp(18px, 7vw, 38px); padding: 6px 0 0; }
  .main-nav a { min-height: 39px; font-size: 10px; }
  .main-nav a::after { bottom: 1px; }
  .container { width: calc(100% - 36px); }
  .hero { padding-block: 49px 18px; }
  .eyebrow { margin-bottom: 17px; font-size: 9px; }
  .hero h1 { font-size: clamp(48px, 13vw, 62px); line-height: .98; }
  .hero-description { margin: 19px 0 22px; font-size: 13px; line-height: 1.7; }
  .username-field { min-height: 54px; }
  .username-field > span { padding-left: 12px; }
  .username-field input { height: 52px; padding-inline: 8px; font-size: 12px; }
  .username-field .primary { min-width: 88px; min-height: 42px; margin: 5px; padding-inline: 10px; font-size: 10px; }
  .form-error { font-size: 11px; }
  .hero-art { width: 100%; min-height: 350px; margin-top: 25px; }
  .hero-art::before { top: 6%; right: 6%; width: 88%; height: 78%; }
  .art-main { top: 12px; width: 205px; height: 294px; padding: 6px; }
  .art-secondary { right: 1px; bottom: 0; width: 126px; height: 170px; padding: 6px; }
  .art-top { top: 17px; left: 16px; font-size: 8px; }
  .art-bottom { right: 15px; bottom: 14px; font-size: 14px; }
  .art-caption { right: 1px; bottom: -16px; font-size: 8px; }
  .hero-note { align-items: start; gap: 11px; padding-block: 17px 25px; font-size: 10px; }
  .section-heading { align-items: start; margin: 24px 0 18px; }
  .section-heading h2, .archive-toolbar h2 { font-size: 28px; }
  .section-heading p { max-width: 180px; font-size: 10px; }
  .account-result { margin: 24px 0 45px; padding: 17px; }
  .account-summary { flex-wrap: wrap; gap: 11px; padding-bottom: 17px; }
  .account-summary > img { width: 48px; height: 48px; }
  .account-identity h2 { font-size: 19px; }
  .account-identity p { font-size: 9px; }
  .account-summary .primary { min-height: 38px; padding-inline: 10px; font-size: 9px; }
  .tabs { gap: 22px; min-height: 42px; }
  .tabs button { min-height: 40px; font-size: 11px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 14px; }
  .media-overlay { padding: 28px 9px 9px; }
  .media-meta { font-size: 9px; }
  .workspace-heading { display: block; padding: 42px 0 23px; }
  .workspace-heading .eyebrow { margin-bottom: 12px; }
  .workspace-heading h1 { font-size: clamp(43px, 12vw, 57px); }
  .workspace-heading p { margin-top: 10px; font-size: 11px; }
  .workspace-actions { margin-top: 17px; }
  .workspace-actions .button { min-height: 39px; padding-inline: 12px; font-size: 10px; }
  .workspace-layout { gap: 27px; padding: 25px 0 55px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .tracker-card { grid-row: auto; padding: 17px; }
  .tracker-card > img { width: 49px; height: 49px; margin-bottom: 13px; }
  .tracker-card h2 { font-size: 20px; }
  .details-list { gap: 11px 8px; margin-top: 15px; padding-top: 14px; }
  .tracker-actions { margin-top: 16px; }
  .sidebar-note { padding: 12px 14px; }
  .archive-toolbar { display: block; padding-bottom: 13px; }
  .archive-toolbar h2 { margin-bottom: 8px; }
  .date-filters { gap: 17px; }
  .date-filters button { min-height: 31px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .archive-group + .archive-group { margin-top: 26px; }
  .date-heading { font-size: 9px; }
  .archive-grid .media-overlay { padding: 24px 8px 8px; }
  .archive-grid .media-meta { font-size: 8px; }
  .site-footer { flex-wrap: wrap; min-height: 0; padding-block: 20px; }
  .site-footer .brand img { width: 145px; height: 28px; }
  .site-footer nav { gap: 13px; font-size: 9px; }
  .site-footer > :last-child { width: 100%; }
  dialog.dialog { width: calc(100% - 24px); }
  .dialog-heading { padding: 20px 18px 15px; }
  .dialog-heading h2 { font-size: 26px; }
  .dialog-body { padding: 18px; }
  .dialog-actions { padding: 14px 18px 18px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .plan-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; min-height: 0; padding: 12px; }
  .plan-card h3 { margin: 0; }
  .plan-price { grid-column: 2; grid-row: 1 / span 2; }
  .plan-card p { margin: 0; font-size: 9px; }
  .plan-card button { grid-column: 1 / -1; margin-top: 7px; }
}

@media (max-width: 370px) {
  .site-header { width: calc(100% - 24px); }
  .brand img { width: 151px; height: 31px; }
  .header-actions .button { min-height: 34px; padding-inline: 8px; font-size: 9px; }
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 9px; }
  .container { width: calc(100% - 28px); }
  .hero h1 { font-size: 47px; }
  .username-field .primary { min-width: 78px; padding-inline: 6px; font-size: 9px; }
  .art-main { width: 190px; height: 270px; }
  .art-secondary { width: 111px; height: 151px; }
  .account-summary .primary { max-width: 100%; }
  .account-result { padding: 13px; }
  .date-filters { gap: 12px; }
  .date-filters button { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Component integration: native controls and semantic wrappers. */
[hidden] { display: none !important; }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.text-button:hover { color: var(--orange); }
.eyebrow, .tracker-card > .eyebrow, .date-filters button.selected { color: var(--orange-text); }
.button.primary::after { content: none; }
.hero { grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr); gap: 56px; }
.hero h1 { font-size: clamp(56px, 5.3vw, 74px); letter-spacing: -.055em; line-height: 1.04; }
.hero-copy { max-width: none; }
.search-form { display: flex; gap: 8px; max-width: 570px; }
.username-field { flex: 1; min-width: 0; }
.search-form .primary { flex: 0 0 auto; min-height: 58px; padding-inline: 16px; }
.art-main .art-bottom { right: auto; left: 22px; font-size: 14px; }
.art-bottom svg { flex-shrink: 0; }
.art-top { right: 22px; gap: 4px; }
.art-top::before { content: none; }
.art-top span { flex: 1; height: 2px; background: #ffffff80; }
.art-top span:first-child { background: white; }
.hero-note > a { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ink); }
.avatar { width: 58px; height: 58px; flex: 0 0 auto; overflow: hidden; padding: 3px; border: 1px solid var(--orange); border-radius: 50%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar > span:not(.avatar) { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 50%; background: var(--paper-deep); color: var(--orange-text); font-family: var(--serif); font-size: 22px; }
.avatar.large { width: 68px; height: 68px; margin: 18px 0 15px; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.result-toolbar .tabs { border: 0; }
.result-caption { color: var(--muted); font-size: 11px; }
.media-card { display: block; width: 100%; padding: 0; cursor: pointer; text-align: left; }
.media-image { display: block; width: 100%; aspect-ratio: 9 / 16; }
.media-image img, .media-image video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-overlay { display: flex; justify-content: space-between; align-items: end; }
.media-type::before { content: none; }
.media-meta { padding: 12px 10px; background: var(--white); color: var(--muted); font-family: var(--mono); }
.media-meta svg { width: 14px; height: 14px; }
.posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card .media-image { aspect-ratio: 4 / 5; }
.workspace-symbol { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.tracker-card > .eyebrow { color: var(--orange); }
.details-list { display: grid; grid-template-columns: 1fr; gap: 17px; }
.details-list dt { display: flex; align-items: center; gap: 7px; }
.details-list dt svg { width: 14px; height: 14px; }
.details-list dd { margin-top: 6px; text-align: left; font-size: 10px; line-height: 1.6; }
.tracker-actions { flex-direction: column; }
.tracker-actions .button { min-height: 41px; font-size: 11px; }
.tracker-actions .text-button { font-size: 10px; }
.alert-setting { gap: 8px; margin-top: 17px; padding: 17px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.alert-setting > span:nth-child(2) { flex: 1; }
.alert-setting > svg { width: 16px; height: 16px; }
.switch-track { display: none; }
.sidebar-note { display: flex; align-items: start; gap: 9px; }
.sidebar-note svg { flex-shrink: 0; width: 16px; height: 16px; }
.date-filters { margin-bottom: 20px; }
.plans-dialog { width: min(100% - 32px, 830px); }
.plan-card .plan-price { color: var(--ink); font-family: var(--serif); font-size: 34px; }
.plan-price span { font-family: var(--sans); color: var(--muted); font-size: 10px; letter-spacing: 0; }
.dialog-actions { padding: 17px 0 0; margin-top: 20px; }
#email-form .primary { width: 100%; margin-top: 14px; }
.provider-mark { font-family: Georgia, serif; font-size: 20px; }
dialog.story-dialog { width: min(100% - 24px, 440px); height: min(92dvh, 820px); }
.story-dialog .dialog-heading { padding: 14px 18px; border-color: #ffffff20; align-items: center; }
.story-dialog .dialog-heading h2 { font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.story-dialog .icon-button { border-color: #ffffff35; color: var(--white); }
.story-dialog .dialog-body { height: calc(100% - 70px); padding: 0; display: flex; flex-direction: column; }
.viewer-top { position: static; justify-content: start; gap: 9px; padding: 13px 18px; font-size: 11px; }
.viewer-top time { margin-left: auto; color: #c4c4bd; font-family: var(--mono); font-size: 9px; }
.viewer-avatar { width: 28px; height: 28px; overflow: hidden; border-radius: 50%; flex-shrink: 0; }
.viewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.viewer-image { flex: 1; min-height: 0; }
.viewer-image img, .viewer-image video { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-caption { max-height: 72px; margin: 0; padding: 8px 18px; overflow: auto; color: #dddcd5; font-size: 11px; line-height: 1.5; }
.viewer-navigation { position: static; transform: none; align-items: center; padding: 10px 18px; font-family: var(--mono); font-size: 10px; }
.viewer-navigation .previous svg { transform: rotate(180deg); }
.viewer-navigation button:disabled { opacity: .3; cursor: default; }
.signed-in-email { max-width: 180px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.empty-state, .error-state { margin: 18px 0; padding: 15px 17px; border: 1px solid var(--line); background: rgb(255 254 250 / 66%); color: var(--muted); font-size: 12px; line-height: 1.6; }
.error-state { border-color: #e2d4c7; background: #f6eee6; color: #75563e; }
.workspace-gate { display: grid; justify-items: start; gap: 12px; padding-block: 34px; }
.workspace-gate .empty-state { margin: 0; }
.load-more { display: flex; margin: 20px auto 0; }
.download-button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: white; font-size: 10px; }
.download-button svg { width: 16px; height: 16px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero { gap: 30px; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); }
  .hero h1 { font-size: 62px; }
  .search-form { flex-wrap: wrap; }
  .search-form .primary { min-height: 46px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero h1 { font-size: 72px; }
  .sidebar { grid-template-columns: 1fr; }
  .tracker-card { grid-row: auto; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(44px, 12vw, 62px); }
  .search-form { flex-direction: column; }
  .search-form .primary { min-height: 48px; }
  .username-field input { font-size: 16px; }
  .hero-note { flex-wrap: wrap; }
  .hero-note > a { margin-left: 0; width: 100%; padding-left: 23px; }
  .avatar { width: 48px; height: 48px; }
  .account-summary .primary { width: 100%; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-meta { padding: 9px 7px; font-size: 8px; }
  .workspace-actions { display: none; }
  .tracker-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 12px; }
  .tracker-card > .eyebrow { grid-column: 1 / -1; margin-bottom: 10px; }
  .tracker-card .avatar.large { grid-column: 1; grid-row: 2 / span 2; width: 52px; height: 52px; margin: 0; }
  .tracker-card h2 { grid-column: 2; align-self: end; font-size: 21px; }
  .tracker-card .account-kind { grid-column: 2; }
  .tracker-card .status-pill { grid-column: 2; justify-self: start; margin-top: 4px; }
  .tracker-card .details-list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 12px; }
  .details-list > div:first-child { grid-column: 1 / -1; display: flex; justify-content: space-between; }
  .details-list > div:first-child dd { margin: 0; }
  .details-list dd { font-size: 9px; }
  .tracker-actions, .alert-setting { grid-column: 1 / -1; }
  .tracker-actions { flex-direction: row; align-items: center; margin-top: 9px; }
  .tracker-actions > * { flex: 1; }
  .alert-setting { margin-top: 8px; padding-top: 12px; }
  .archive-toolbar { display: flex; }
  .archive-toolbar h2 { margin-bottom: 0; }
  .plans-dialog { width: calc(100% - 24px); }
  .plan-card .plan-price { font-size: 28px; }
  .viewer-top time { font-size: 8px; }
}

.homepage-plans { margin: 58px 0 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.homepage-plans h2 { margin: 0 0 24px; font: 500 32px/1.2 var(--serif); }
.home-content-section { margin: 76px 0; }
.home-content-section > h2 { max-width: 720px; margin: 0 0 28px; font: 500 clamp(30px, 4vw, 42px)/1.08 var(--serif); letter-spacing: -.035em; }
.hero h1 { max-width: 620px; font-size: clamp(52px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.hero-description { max-width: 500px; }
.home-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-feature { min-height: 176px; padding: 25px 27px; border: 1px solid var(--line); background: rgb(255 254 250 / 54%); }
.home-feature h3, .home-step h3 { margin: 0 0 12px; font: 500 20px/1.2 var(--serif); letter-spacing: -.015em; }
.home-feature p, .home-step p, .home-faq p { max-width: 62ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.home-steps { padding: 38px 40px 42px; background: var(--paper-deep); }
.home-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.home-step-number { display: inline-block; margin-bottom: 21px; color: var(--orange-text); font: 700 11px/1 var(--mono); letter-spacing: .12em; }
.home-step h3 { font-size: 18px; }
.pricing-intro { max-width: 680px; margin: -10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.home-faqs { max-width: 900px; margin-bottom: 88px; }
.home-faq-list { border-top: 1px solid var(--line); }
.home-faq { border-bottom: 1px solid var(--line); }
.home-faq summary { position: relative; padding: 19px 34px 19px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 650; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { position: absolute; top: 22px; right: 4px; width: 8px; height: 8px; border-right: 1px solid var(--orange-text); border-bottom: 1px solid var(--orange-text); content: ''; transform: rotate(45deg); transition: transform .18s ease; }
.home-faq[open] summary::after { transform: rotate(225deg); }
.home-faq p { padding: 0 32px 20px 0; }
.homepage-plans .plan-grid { gap: 18px; }
.homepage-plans .plan-card { padding: 24px; min-height: 230px; }
.homepage-plans .plan-card h3 { font-size: 15px; }
.homepage-plans .plan-card p { font-size: 13px; }
.homepage-plans .plan-card .plan-price { font-size: 42px; }
.homepage-plans .plan-card button { font-size: 12px; min-height: 42px; }
.site-footer nav { flex-wrap: wrap; }
@media (max-width: 600px) {
  .homepage-plans { margin-block: 38px; }
  .homepage-plans .plan-card { min-height: 0; padding: 18px; }
  .homepage-plans .plan-card .plan-price { font-size: 34px; }
  .hero h1 { font-size: clamp(43px, 12vw, 60px); }
  .home-content-section { margin-block: 52px; }
  .home-content-section > h2 { margin-bottom: 20px; }
  .home-feature-grid, .home-step-grid { grid-template-columns: 1fr; gap: 9px; }
  .home-feature { min-height: 0; padding: 20px; }
  .home-steps { padding: 25px 21px 28px; }
  .home-step-grid { gap: 24px; }
  .home-step-number { margin-bottom: 13px; }
  .home-faqs { margin-bottom: 54px; }
  .home-faq summary { font-size: 13px; }
}

.signed-in-identity { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.login-avatar { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-deep); color: var(--muted); }
.login-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .site-header:has(.signed-in-identity) .brand img { width: clamp(100px, 33vw, 140px); height: auto; }
  .signed-in-identity { gap: 6px; }
  .signed-in-email { max-width: 88px; font-size: 9px; }
  .login-avatar { width: 28px; height: 28px; }
}
@media (max-width: 370px) { .signed-in-email { max-width: 78px; } }

/* Flat desktop navigation, with a native modal drawer on smaller screens. */
.main-nav { gap: clamp(15px, 1.7vw, 26px); padding-inline: 22px; }
.main-nav a { white-space: nowrap; }
button.mobile-nav-toggle { display: none; }
.navigation-drawer { inset: 0 0 0 auto; width: min(86vw, 360px); height: 100dvh; max-height: 100dvh; margin: 0; padding: 28px 24px; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: -16px 0 50px rgb(36 38 32 / 12%); }
.navigation-drawer::backdrop { background: rgb(28 29 25 / 48%); backdrop-filter: blur(3px); }
.navigation-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.navigation-heading h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.navigation-drawer nav { display: grid; padding-top: 12px; }
.navigation-drawer nav a { display: flex; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 600; }
.navigation-drawer nav a:hover, .navigation-drawer nav a.active { color: var(--orange); }
.navigation-drawer a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
body:has(.navigation-drawer[open]) { overflow: hidden; }
.home-content-section, .homepage-plans { scroll-margin-top: 24px; }
@media (min-width: 1001px) and (max-width: 1260px) {
  .site-header { width: calc(100% - 40px); }
  .brand img { width: 190px; height: auto; }
  .main-nav { gap: 14px; padding-inline: 16px; }
  .main-nav a { font-size: 11px; }
  .signed-in-email { max-width: 100px; }
}
@media (max-width: 1000px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding-block: 14px; min-height: 76px; }
  .main-nav { display: none; }
  button.mobile-nav-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img { width: 190px; height: auto; }
}
@media (max-width: 640px) {
  .site-header { width: calc(100% - 32px); gap: 8px; }
  .brand img { width: clamp(112px, 34vw, 176px); }
  .site-header:has(.signed-in-identity) .brand img { width: clamp(104px, 30vw, 140px); }
  .header-actions { gap: 6px; }
  button.mobile-nav-toggle { width: 34px; height: 34px; }
  .signed-in-identity { gap: 5px; }
  .signed-in-email { max-width: 66px; }
  .header-actions .sign-in { padding-inline: 9px; }
}
@media (max-width: 370px) {
  .site-header { width: calc(100% - 24px); gap: 6px; }
  .signed-in-email { max-width: 53px; }
  .header-actions .sign-in { padding-inline: 7px; }
}
