:root {
  color-scheme: only light;
}
:root {
  --cream: #faf5e9;
  --ink: #263c38;
  --wine: #892e32;
  --teal: #356f69;
  --gold: #e3b555;
  --line: #ded6c6;
  --muted: #60685e;
  --paper: #fffdf6;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  padding: 13px 23px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
button:hover,
.button:hover {
  filter: brightness(0.92);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.quiet {
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
}
.small {
  font-size: 14px;
  padding: 10px 14px;
}
.danger {
  color: #922c30;
  background: #fae5de;
}
.teal {
  background: var(--teal);
}
a {
  color: var(--wine);
}
:focus-visible {
  outline: 3px solid #d7901e;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  background: white;
  padding: 15px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.awning {
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--wine) 0 35px,
    #f5e7d1 35px 70px
  );
}
header {
  max-width: 1320px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 52px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  color: var(--wine);
  text-align: center;
  text-decoration: none;
  width: 286px;
  flex-shrink: 0;
  line-height: 0.9;
}
.brand img,
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}
nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
nav button.active {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 7px;
}
main {
  max-width: 1216px;
  margin: auto;
  padding: 0 0 65px;
  min-height: 68vh;
}
.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  padding: 64px 0 50px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: '';
  width: 23px;
  height: 1px;
  background: currentColor;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}
h1 {
  font-size: 68px;
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin: 24px 0;
}
h1 em {
  color: var(--wine);
  font-weight: 400;
}
p {
  line-height: 1.7;
}
.intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 27px;
}
.hero-art {
  position: relative;
  transform: rotate(2deg);
  padding: 13px;
  background: var(--paper);
  box-shadow: 0 12px 35px #463b2820;
}
.hero-art img {
  width: 100%;
  display: block;
}
.hero-art:before {
  content: '';
  position: absolute;
  width: 105px;
  height: 25px;
  background: #dfc99cd9;
  left: 40%;
  top: -9px;
  transform: rotate(-8deg);
}
.micro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.welcome .micro {
  margin-top: 15px;
}
.how {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.how article {
  display: flex;
  gap: 16px;
}
.step {
  font: italic 25px Georgia;
  color: var(--wine);
}
.how h3 {
  font-size: 20px;
  margin: 0 0 7px;
}
.how p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
footer {
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 30px 52px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
footer span {
  font-size: 12px;
}
footer small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  max-width: 330px;
  line-height: 1.7;
}
.footer-brand {
  display: block;
  width: 216px;
  flex-shrink: 0;
  text-decoration: none;
}
#demo-banner {
  background: #e7ba5e;
  color: #3e3424;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  padding: 10px;
}
#demo-banner[hidden] {
  display: none;
}
.demo-actions {
  border-top: 1px dashed var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 45px 0 30px;
}
.page-head h1 {
  font-size: 45px;
  margin: 10px 0;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.filters {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
label > input,
label > select,
label > textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
}
input,
select,
textarea {
  padding: 12px;
  border: 1px solid #bebcab;
  background: var(--paper);
  color: var(--ink);
  border-radius: 5px;
  min-height: 46px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.filters label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
  min-width: 110px;
}
.filters select {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.collection-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 12px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.photo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.photo .image-button {
  display: block;
  padding: 0;
  width: 100%;
  background: #e8e1d2;
  aspect-ratio: 4/3;
  min-height: 0;
  border-radius: 0;
  position: relative;
  color: var(--ink);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-body {
  padding: 15px 17px;
}
.photo h3 {
  font-size: 19px;
  margin: 0 0 9px;
}
.photo p {
  margin: 4px 0;
  font-size: 12px;
  color: var(--muted);
}
.photo .actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.photo .actions button {
  font-size: 12px;
  padding: 8px 10px;
  min-height: 42px;
}
.badge {
  display: inline-block;
  background: #e5eee5;
  color: #345f47;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge.pending,
.badge.processing,
.badge.uploading {
  background: #f8e6ba;
  color: #745014;
}
.badge.failed,
.badge.rejected {
  background: #f5dddb;
  color: #882f31;
}
.empty {
  padding: 65px 20px;
  text-align: center;
  border: 1px dashed #babba9;
  margin: 25px 0;
  border-radius: 8px;
}
.empty h2 {
  font-size: 30px;
  margin: 10px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
}
.empty-symbol {
  font: 45px Georgia;
  color: var(--teal);
}
.load-more {
  display: flex;
  justify-content: center;
  padding: 30px;
}
.notice {
  padding: 16px 20px;
  background: #e8ece0;
  border-left: 3px solid var(--teal);
  font-size: 13px;
  line-height: 1.6;
  border-radius: 3px;
  margin: 10px 0 25px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.stat {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.stat strong {
  font: 34px Georgia;
  display: block;
  margin: 8px 0;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.tabs .active {
  background: var(--ink);
  color: white;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 35px;
  margin-top: 28px;
}
.panel {
  background: var(--paper);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.panel h2 {
  margin: 0 0 20px;
}
.form-stack {
  display: grid;
  gap: 18px;
}
.person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  gap: 15px;
  flex-wrap: wrap;
}
.person strong {
  display: block;
}
.person small {
  font-size: 12px;
  color: var(--muted);
}
.months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.months h3 {
  margin: 0 0 15px;
}
.month-card {
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--paper);
  border-radius: 6px;
}
.month-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.month-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.month-card p {
  font-size: 12px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 640px;
  width: calc(100% - 30px);
  padding: 30px;
  background: var(--cream);
  color: var(--ink);
  max-height: 92dvh;
  overflow: auto;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #152e2bbb;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 33px;
  margin: 5px 0 12px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.close {
  padding: 5px 12px;
  font-size: 27px;
  min-height: 42px;
}
.error {
  color: #9e252b;
  font-size: 13px;
  line-height: 1.5;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
}
.auth-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.file-picker {
  border: 2px dashed #afbbad;
  padding: 35px 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 8px;
}
.file-picker input {
  display: block;
  max-width: 100%;
  margin: 16px auto 0;
  font-size: 13px;
}
.upload-files {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.file-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.file-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
}
.file-row strong {
  font-size: 12px;
  overflow-wrap: anywhere;
  display: block;
}
.file-row small {
  font-size: 11px;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 7px;
  accent-color: var(--teal);
}
.optional {
  margin: 18px 0;
}
.optional summary {
  cursor: pointer;
  font-weight: bold;
  padding: 14px 0;
}
.optional .form-stack {
  padding: 15px 0;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
}
.checkbox input {
  min-height: 22px;
  width: 22px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--teal);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags label {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #eee8d9;
  padding: 8px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 12px;
}
.tags input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--teal);
}
.viewer {
  max-width: 1100px;
  background: #172a27;
  color: #fff9e7;
}
.viewer img {
  width: 100%;
  height: 65dvh;
  object-fit: contain;
}
.viewer .close,
.viewer .secondary {
  color: #fff9e7;
}
.viewer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.viewer-meta h2 {
  font-size: 22px;
  margin: 13px 0;
}
.viewer-meta p {
  margin: 5px 0;
  font-size: 12px;
}
.selection {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--paper);
  padding: 8px;
  border-radius: 4px;
}
.selection input {
  min-height: 20px;
  width: 20px;
  margin: 0;
}
.photo-image {
  position: relative;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 15px 23px;
  box-shadow: 0 5px 20px #0002;
  border-radius: 6px;
  z-index: 100;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}
#toast.show {
  display: block;
}
.mono {
  font-family: monospace;
  overflow-wrap: anywhere;
  padding: 15px;
  background: #eae5d9;
}
.grid-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.edit-preview {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #e6e0d1;
  margin: 12px 0;
}
.admin-welcome {
  font-size: 13px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.status-symbol {
  background: #e4ded0;
  padding: 15px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .welcome {
    padding-top: 80px;
    padding-bottom: 70px;
  }
}
@media (max-width: 1300px) {
  main {
    margin: 0 45px;
  }
  .welcome {
    gap: 40px;
  }
  h1 {
    font-size: 60px;
  }
}
@media (max-width: 900px) {
  header {
    padding: 22px 25px;
  }
  main {
    margin: 0 25px;
  }
  .welcome {
    gap: 28px;
  }
  h1 {
    font-size: 47px;
  }
  .intro {
    font-size: 15px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how {
    gap: 20px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .months {
    grid-template-columns: repeat(2, 1fr);
  }
  footer {
    padding: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  input,
  select,
  textarea,
  .filters select {
    font-size: 16px;
  }
  .awning {
    height: 9px;
  }
  header {
    padding: 21px 18px;
    align-items: center;
    gap: 12px;
  }
  .brand {
    width: 172px;
  }
  nav {
    justify-content: flex-end;
    gap: 0;
  }
  nav button {
    font-size: 12px;
    padding: 10px;
    min-height: 44px;
  }
  nav .member-name {
    display: none;
  }
  main {
    margin: 0 20px;
    padding-bottom: 35px;
  }
  .welcome {
    grid-template-columns: 1fr;
    padding: 38px 0 35px;
    gap: 32px;
  }
  h1 {
    font-size: 52px;
    margin: 18px 0;
    letter-spacing: -2px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
  }
  .welcome .button {
    width: 100%;
  }
  .intro {
    max-width: none;
    font-size: 16px;
  }
  .hero-art {
    margin: 0 10px;
  }
  .hero-art img {
    max-height: 350px;
    object-fit: cover;
    object-position: center;
  }
  .how {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 27px 0;
  }
  .how p {
    font-size: 14px;
  }
  .how h3 {
    font-size: 21px;
  }
  footer {
    padding: 24px 20px;
    gap: 12px;
  }
  footer small {
    margin-left: 0;
    max-width: none;
  }
  footer span {
    font-size: 11px;
  }
  .page-head {
    padding: 30px 0 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .page-head h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }
  .page-head p {
    font-size: 14px;
  }
  .page-head > .button,
  .page-head > button {
    width: 100%;
  }
  .grid {
    gap: 12px;
  }
  .photo-body {
    padding: 11px;
  }
  .photo h3 {
    font-size: 16px;
  }
  .photo p {
    font-size: 10px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    min-width: calc(50% - 10px);
  }
  .filters select {
    font-size: 16px;
    width: 100%;
  }
  .collection-meta {
    font-size: 11px;
  }
  .months {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 29px;
  }
  .split {
    gap: 20px;
  }
  .panel {
    padding: 18px;
  }
  dialog {
    padding: 22px 18px;
    max-height: 94dvh;
  }
  .viewer {
    padding: 15px;
  }
  .viewer img {
    height: 56dvh;
  }
  .viewer-meta {
    flex-wrap: wrap;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .micro {
    font-size: 11px;
  }
  #demo-banner {
    font-size: 10px;
  }
  .notice {
    font-size: 12px;
    padding: 13px;
  }
  .photo .actions button {
    font-size: 11px;
    min-height: 44px;
    padding: 7px;
  }
  .file-picker {
    padding: 20px 12px;
  }
  .toolbar button {
    font-size: 12px;
  }
  .person button {
    font-size: 12px;
  }
  .grid-help {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .photo {
    animation: arrive 0.3s ease-out;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
