:root {
  --wine: #732d41;
  --ink: #382d2b;
  --muted: #6c5b55;
  --cream: #f8f4ec;
  --line: #e4dbd1;
  font:
    16px/1.6 "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: #fffcf7;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a.button {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffaf4;
  padding: 0.55rem 0.95rem;
}
a:hover,
summary:hover {
  color: var(--wine);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a34e6c;
  outline-offset: 3px;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
.wrap {
  max-width: 1440px;
  width: 88%;
  margin: auto;
}
.bar,
.brand,
.bar nav,
.button,
.actions,
.place,
.kicker,
.section-title,
.more,
.card-caption,
.between,
.quick-inner,
.quick-inner > div,
.quick a {
  display: flex;
  align-items: center;
}
.bar {
  height: 82px;
  justify-content: space-between;
  gap: 24px;
}
header {
  background: #fffcf8;
  border-bottom: 1px solid var(--line);
}
.brand {
  gap: 8px;
  color: var(--wine);
  line-height: 0.95;
}
.brand svg {
  width: 49px;
}
.brand span {
  font:
    italic 30px/0.95 Georgia,
    serif;
  letter-spacing: -1.7px;
}
.brand small {
  display: block;
  text-align: center;
  font:
    9px/1.4 "Segoe UI",
    sans-serif;
  letter-spacing: 4px;
  margin-top: 6px;
}
.bar nav {
  gap: clamp(17px, 2.4vw, 42px);
  font-size: 14px;
}
.bar nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.bar nav a[aria-current],
.bar nav a:hover {
  border-color: var(--wine);
  color: var(--wine);
}
.button {
  display: inline-flex;
  justify-content: center;
  gap: 9px;
  border-radius: 5px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 14px;
}
.primary,
.header-cta,
.floating {
  background: var(--wine);
  color: white;
}
.header-cta {
  padding: 10px 18px;
}
.primary:hover,
.header-cta:hover,
.floating:hover {
  background: #582235;
  color: white;
}
.secondary {
  border: 1px solid #b8a99d;
  background: transparent;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  min-height: 480px;
}
.hero-copy {
  padding: clamp(44px, 5vw, 92px) 4vw clamp(38px, 4vw, 72px)
    max(6vw, calc((100vw - 1440px) / 2));
  align-self: center;
}
.kicker {
  gap: 11px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.kicker i,
figcaption i {
  width: 32px;
  height: 1px;
  background: currentColor;
}
.hero h1,
h2,
h3,
.quick-inner > span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.hero h1 {
  font-size: clamp(49px, 5.1vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  margin: 22px 0;
}
.hero h1 em,
h2 em {
  color: var(--wine);
  font-weight: 400;
}
.hero-copy > p {
  color: var(--muted);
  max-width: 450px;
  font-size: clamp(15px, 1.15vw, 19px);
  margin: 0 0 27px;
}
.actions {
  gap: 10px;
  flex-wrap: wrap;
}
.place {
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}
.place svg {
  width: 15px;
}
.hero-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.hero-photo > img {
  position: absolute;
  height: 100%;
  object-fit: cover;
}
.hero-photo figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  position: absolute;
  bottom: 20px;
  left: 22px;
  background: #fffcf3ed;
  padding: 6px 11px;
  font:
    italic 13px Georgia,
    serif;
  border-radius: 3px;
}
.hero-photo figcaption i {
  width: 17px;
  background: var(--wine);
}
.quick {
  border-block: 1px solid var(--line);
  background: #f2ece2;
}
.quick-inner {
  gap: 24px;
  min-height: 80px;
}
.quick-inner > span {
  font-style: italic;
  font-size: 19px;
  white-space: nowrap;
}
.quick-inner > div {
  justify-content: space-between;
  gap: 10px;
  flex: 1;
}
.quick a {
  gap: 9px;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid #d7c9bd;
  border-radius: 4px;
  background: #fffaf3;
}
.quick b {
  font: 20px Georgia;
  color: var(--wine);
}
.quick a span {
  color: var(--muted);
}
.block {
  padding-block: 58px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: clamp(37px, 3.6vw, 61px);
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 10px 0 25px;
}
.section-title,
.card-caption,
.between {
  justify-content: space-between;
}
.more {
  font-weight: 600;
  color: var(--wine);
  font-size: 13px;
  gap: 9px;
}
.grid,
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card-photo {
  aspect-ratio: 1.46;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  background: var(--cream);
}
.card-photo img {
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s;
}
.card:hover img {
  filter: brightness(0.92);
}
.card-photo small {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #fffcf3e8;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 10px;
}
.card-caption {
  padding: 12px 2px;
}
.card-caption small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--wine);
}
h3 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0.4em 0;
}
.tiles article,
.story aside,
blockquote {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.block p,
.detail p {
  max-width: 75ch;
  color: var(--muted);
}
.story,
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6vw;
}
.story aside {
  align-self: center;
}
.story img {
  max-width: 360px;
  border-radius: 5px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-left: 20px;
}
.steps li::marker {
  color: var(--wine);
}
.filters,
.thumbs,
.search,
.between {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search {
  align-items: end;
}
.filters {
  margin: 20px 0;
}
.filters a {
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 14px;
}
.filters a[aria-current] {
  color: white;
  background: var(--wine);
}
label {
  display: grid;
  gap: 4px;
}
input,
textarea,
select {
  border: 1px solid #bfafa3;
  border-radius: 4px;
  padding: 9px;
  background: white;
  max-width: 100%;
}
details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
footer {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 32px 64px 32px 0;
  font-size: 14px;
}
.floating {
  position: fixed;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px #3e24232a;
  padding: 12px;
}
.floating svg {
  width: 26px;
  height: 26px;
}
.floating span,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#openmenu {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffcf7;
  color: var(--ink);
}
dialog::backdrop {
  background: #26191aa6;
}
#menu {
  margin: 0 0 0 auto;
  min-height: 100dvh;
  width: min(80vw, 330px);
  padding: 25px;
}
#menu nav a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
#menu a[aria-current] {
  color: var(--wine);
  background: var(--cream);
  box-shadow: inset 3px 0 var(--wine);
  font-weight: 600;
}
.card-caption > div,
.hero-photo figcaption,
.detail {
  overflow-wrap: anywhere;
}
.detail {
  padding: 35px 0 75px;
}
.detail nav {
  font-size: 13px;
  margin-bottom: 24px;
}
.detail h1 {
  font:
    normal clamp(38px, 5vw, 70px)/1.05 Georgia,
    serif;
  color: var(--wine);
}
.detail-grid > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.large-photo {
  touch-action: pan-y pinch-zoom;
  padding: 0;
  width: 100%;
  overflow: hidden;
}
.large-photo img {
  max-height: 65vh;
  object-fit: contain;
}
.thumbs {
  margin: 10px 0;
}
.thumbs button {
  width: 80px;
  padding: 3px;
}
.thumbs img {
  height: 60px;
  object-fit: cover;
}
#zoom {
  width: min(96vw, 1340px);
  max-width: 100vw;
  height: min(94dvh, 960px);
  max-height: 100dvh;
  padding: 8px;
}
#zoom[open] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zoom-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.zoom-tools button {
  padding: 4px 8px;
  min-height: 44px;
}
.zoom-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background: var(--cream);
}
.zoom-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}
.thumbs [aria-pressed="true"] {
  border-color: var(--wine);
}
.notice {
  padding: 12px;
  background: var(--cream);
}
.skip:focus {
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  z-index: 9;
  padding: 10px;
}
.admin {
  padding: 35px 0 80px;
  max-width: 950px;
}
.admin form {
  display: grid;
  gap: 12px;
  max-width: 650px;
}
.admin {
  overflow-wrap: anywhere;
}
.admin form,
.admin label {
  grid-template-columns: minmax(0, 1fr);
}
.admin fieldset,
.admin label,
.admin input,
.admin select,
.admin textarea {
  min-width: 0;
}
.admin [data-editor] input:not([type="checkbox"]),
.admin [data-editor] select,
.admin [data-editor] textarea {
  width: 100%;
}
.admin [data-editor] button {
  min-height: 44px;
  white-space: normal;
}
#photo-list > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
#photo-list label {
  grid-column: 1 / -1;
}
.admin fieldset {
  border: 1px solid var(--line);
  margin-block: 12px;
}
.admin textarea {
  min-height: 80px;
}
.admin input[type="checkbox"] {
  justify-self: start;
}
.admin .row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.admin h1 {
  font: 40px Georgia;
}
.admin nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin nav a,
.admin .row a {
  color: var(--wine);
  text-decoration: underline;
}
.admin .stats {
  background: var(--cream);
  padding: 14px;
}
.admin .error {
  color: #8c2038;
}
.import-work,
.import-photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.import-work {
  margin-block: 20px;
}
.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}
.import-photo {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.import-photo img,
#folder-import dialog img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}
#folder-import dialog {
  width: min(calc(100% - 32px), 600px);
  max-height: 85dvh;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
#folder-import dialog::backdrop {
  background: rgb(44 28 26 / 55%);
}
#folder-import button,
#folder-import input:not([type="checkbox"], [type="radio"]),
#folder-import select {
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
}
#folder-import input[type="radio"] {
  justify-self: start;
}
#folder-import .import-destinations > label:has(> input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block: 6px;
}
.import-mobile {
  display: none;
}
@media (max-width: 640px) {
  .import-mobile {
    display: block;
  }
}
cite {
  display: block;
  margin-top: 10px;
}
@media (max-width: 1050px) {
  .quick-inner {
    flex-wrap: wrap;
    gap: 9px;
    padding: 14px 0;
  }
  .quick-inner > div {
    flex-wrap: wrap;
  }
  .quick-inner > span {
    font-size: 17px;
  }
  .bar nav {
    gap: 15px;
  }
  .quick a {
    padding: 6px 9px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 780px) {
  header {
    position: sticky;
    top: 0;
    z-index: 4;
  }
  main section[id] {
    scroll-margin-top: 72px;
  }
  .wrap {
    width: 90%;
  }
  .bar {
    height: 67px;
  }
  .brand span {
    font-size: 25px;
  }
  .brand svg {
    width: 41px;
  }
  .bar nav,
  .bar .header-cta {
    display: none;
  }
  #openmenu {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 35px 5vw;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-copy .button {
    padding: 10px 12px;
  }
  .quick-inner > div {
    flex-basis: 100%;
    justify-content: flex-start;
  }
  .grid,
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .block {
    padding-block: 40px;
  }
  .section-title {
    align-items: start;
    gap: 10px;
  }
  .more {
    margin-top: 14px;
  }
  .quick-inner > span {
    font-size: 16px;
  }
  .story,
  .detail-grid {
    gap: 25px;
  }
}
@media (max-width: 600px) {
  .hero,
  .story,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 34px 5vw 24px;
  }
  .hero h1 {
    font-size: clamp(44px, 10.5vw, 61px);
    margin: 14px 0;
  }
  .hero h1 em br {
    display: none;
  }
  .hero-copy > p {
    margin-bottom: 18px;
  }
  .place {
    margin-top: 14px;
  }
  .hero-photo {
    aspect-ratio: 1.85;
  }
  .hero-photo > img {
    object-position: center 40%;
  }
  .hero-photo figcaption {
    bottom: 10px;
    left: 5vw;
  }
  .quick-inner > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .quick a {
    flex-shrink: 0;
  }
  .quick-inner {
    display: block;
  }
  .quick-inner > span {
    display: block;
    margin-bottom: 8px;
  }
  .section-title {
    display: block;
  }
  .more {
    margin: -12px 0 18px;
  }
  .grid,
  .tiles,
  .steps {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 18px;
  }
  .steps {
    gap: 12px;
  }
  .bar {
    gap: 10px;
  }
  .floating {
    right: 12px;
    bottom: 12px;
  }
  .actions {
    gap: 8px;
  }
  .kicker {
    font-size: 9px;
  }
  .detail-grid {
    display: block;
  }
  .thumbs {
    margin-bottom: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.library-img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}

.story > div:only-child {
  grid-column: 1 / -1;
}

.tiles > article {
  min-width: 0;
}

.tiles h3 {
  overflow-wrap: anywhere;
}
