:root {
  --paper: #f6f4ee;
  --ink: #23383d;
  --muted: #56666a;
  --accent: #244e57;
  --line: #cdd3ce;
  --serif: Charter, "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.45 var(--sans);
  font-kerning: normal;
}
body[data-theme="heritage"] {
  --paper: #f5f0e7;
  --ink: #453c32;
  --muted: #706456;
  --accent: #67543c;
  --line: #d5cbbd;
}
body[data-theme="celebration"] {
  --paper: #fbf1eb;
  --ink: #633b32;
  --muted: #7b5c53;
  --accent: #964d39;
  --line: #ddc5b7;
}
body[data-theme="minimal"] {
  --paper: #f8f8f6;
  --ink: #303633;
  --muted: #626960;
  --accent: #37493e;
  --line: #d0d5ce;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button,
.button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  padding: 10px 17px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
button:hover,
.button:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button.primary,
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.site-header {
  max-width: 1600px;
  margin: auto;
  padding: 27px 5%;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font: 600 18px/1.3 var(--serif);
  text-decoration: none;
  display: flex;
  gap: 22px;
  align-items: center;
}
.wordmark strong {
  font: inherit;
}
.wordmark span {
  font: 13px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
nav,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-size: 15px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 0 5%;
  min-height: 65vh;
}
.intro {
  padding: 64px 0 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.eyebrow:before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}
h1 {
  font: 600 clamp(36px, 4vw, 48px)/1.1 var(--serif);
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 22ch;
}
h2 {
  font: 600 27px/1.2 var(--serif);
  margin: 36px 0 16px;
}
p {
  max-width: 65ch;
  margin: 0 0 18px;
}
.description {
  color: var(--muted);
  max-width: 52ch;
  font-size: 18px;
}
.album-note {
  color: var(--muted);
  font-size: 14px;
}
.toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
}
.layouts {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px;
  gap: 3px;
}
.layouts button {
  border: 0;
  font-size: 14px;
  padding: 7px 14px;
  min-height: 40px;
}
.layouts [aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.gallery {
  position: relative;
}
.tile {
  position: absolute;
  border: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
  min-height: 0;
}
.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile:after {
  content: "↗";
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--paper);
  border-radius: 50%;
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.tile:hover:after,
.tile:focus-visible:after {
  opacity: 1;
}
.more {
  display: block;
  margin: 32px auto;
}
.download-section {
  margin: 64px 0 32px;
  border-top: 1px solid var(--line);
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
}
.download-section h2 {
  margin: 0 0 14px;
}
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}
.archive-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.archive-item .button {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.photographer {
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.archive-list small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.empty {
  padding: 80px 0;
}
.empty h1 {
  max-width: 20ch;
}
.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.album-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  text-decoration: none;
}
.album-card h2 {
  margin: 15px 0;
}
.tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.login {
  max-width: 520px;
  margin: 72px auto;
  padding-bottom: 36px;
}
.login h1 {
  font-size: 40px;
}
.login p {
  color: var(--muted);
}
label {
  display: block;
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, white);
  border-radius: 4px;
  color: var(--ink);
  min-height: 48px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.login .button,
.login button {
  width: 100%;
  margin-top: 16px;
}
.divider {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin: 28px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.error {
  color: #a13224;
  padding: 10px 0;
  margin: 0;
  min-height: 28px;
  font-size: 15px;
}
.help {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  margin: 32px 0 70px;
}
.admin-side button {
  width: 100%;
  text-align: left;
  justify-content: start;
  margin-bottom: 9px;
}
.editor {
  max-width: 780px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.guest-list {
  padding: 0;
  list-style: none;
}
.guest-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.guest-list button {
  font-size: 14px;
}
.notice {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  padding: 20px;
  border-left: 3px solid var(--accent);
  margin: 24px 0;
}
.domain-table {
  overflow: auto;
}
.domain-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.domain-table td,
.domain-table th {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
footer {
  max-width: 1600px;
  margin: 48px auto 0;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 5px;
  max-width: 90vw;
  z-index: 10;
  display: none;
}
#toast.visible {
  display: block;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  background: var(--paper);
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
dialog {
  border: 0;
  background: #141c20;
  color: #f5f2eb;
  padding: 20px 30px;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  margin: 0;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: #141c20;
}
.viewer-top,
.viewer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.viewer-top {
  font-size: 14px;
  padding-bottom: 14px;
}
.viewer-top button,
dialog button {
  border-color: #647077;
  color: inherit;
}
.viewer-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.arrow {
  flex-shrink: 0;
  border: 0;
  font-size: 28px;
  width: 48px;
  padding: 0;
}
#image-stage {
  height: 100%;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
#full-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#image-stage.zoomed {
  display: block;
}
#image-stage.zoomed img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}
.viewer-bottom {
  padding-top: 18px;
  font-size: 14px;
}
.viewer-bottom p {
  margin: 0;
}
.light-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 4px;
  background: #f5f2eb;
  color: #21333a;
  min-height: 44px;
}
dialog :focus-visible {
  outline-color: #f5f2eb;
}
.hidden {
  display: none !important;
}
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .site-header {
    padding: 20px 6%;
  }
  .wordmark {
    display: block;
  }
  .wordmark span {
    display: block;
    border: 0;
    padding: 5px 0 0;
    font-size: 10px;
  }
  main {
    padding: 0 6%;
  }
  .intro {
    display: block;
    padding: 42px 0 28px;
  }
  .intro .actions {
    margin-top: 24px;
  }
  .toolbar {
    gap: 12px;
    align-items: start;
    flex-direction: column;
  }
  .layouts {
    width: 100%;
  }
  .layouts button {
    flex: 1;
    padding: 7px 10px;
  }
  .download-section {
    display: block;
    margin-top: 42px;
  }
  .archive-list {
    margin-top: 24px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .admin-side {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .admin-side button {
    width: auto;
  }
  .viewer-stage {
    gap: 0;
    position: relative;
  }
  .arrow {
    position: absolute;
    bottom: 8px;
    background: #141c20b0;
    width: 44px;
    z-index: 1;
  }
  .prev {
    left: 0;
  }
  .next {
    right: 0;
  }
  dialog {
    padding: 12px;
  }
  .viewer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .viewer-bottom .actions {
    width: 100%;
    justify-content: space-between;
  }
  footer {
    padding: 28px 6%;
    flex-direction: column;
    gap: 8px;
  }
  .login {
    margin: 45px auto;
  }
  h1 {
    font-size: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.jura-home {
  padding: 32px 0 0;
}
.jura-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 230px);
  gap: 12px;
}
.home-photo {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--line);
}
.home-photo:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.home-photo img,
.story-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jura-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.story-tile {
  position: relative;
  display: block;
  aspect-ratio: 2.4;
  overflow: hidden;
  background: var(--ink);
  color: white;
}
.story-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.76));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.story-label {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 24px;
  font-family: var(--serif);
  line-height: 1.2;
  opacity: 0;
  transition: opacity 180ms ease;
}
.story-tile:hover::after,
.story-tile:focus-visible::after,
.story-tile:hover .story-label,
.story-tile:focus-visible .story-label {
  opacity: 1;
}
.jura-footer {
  margin-top: 28px;
  padding-top: 18px;
  padding-bottom: 22px;
  align-items: center;
}
.jura-footer nav {
  gap: 12px 26px;
}
.jura-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 0;
}
.jura-footer nav a:hover {
  text-decoration: underline;
}
.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  opacity: 0.7;
}
.instagram-link:hover,
.instagram-link:focus-visible {
  opacity: 1;
}
@media (max-width: 700px) {
  .jura-home {
    padding-top: 18px;
  }
  .jura-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 36vw, 230px);
    gap: 8px;
  }
  .home-photo:first-child {
    grid-row: span 1;
  }
  .jura-stories {
    gap: 8px;
    margin-top: 8px;
    grid-template-columns: 1fr;
  }
  .story-tile {
    aspect-ratio: 2.6;
  }
  .story-label {
    font-size: 22px;
    bottom: 18px;
    left: 20px;
    right: 20px;
  }
  .jura-footer {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .jura-footer nav {
    gap: 8px 20px;
  }
}
@media (hover: none), (max-width: 700px) {
  .story-tile::after,
  .story-label {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-label,
  .story-tile::after {
    transition: none;
  }
}
@media (min-width: 701px) {
  .jura-mosaic[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jura-mosaic[data-count="4"] .home-photo:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .jura-mosaic[data-count="2"] {
    grid-template-columns: 1fr 1fr;
  }
  .jura-mosaic[data-count="2"] .home-photo:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
}
