/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


/* --- Admin shell (Phase 3) --- */
body.admin {
  background: #f4f4f2;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}
.admin-nav {
  display: flex; align-items: center; gap: 1rem; overflow-x: auto; white-space: nowrap;
  background: #1a1a1a; color: #fff; padding: 0.75rem 1.25rem;
}
.admin-nav nav { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.admin-nav nav form { margin: 0; }
.admin-brand { font-weight: 700; margin-right: auto; flex-shrink: 0; }
.admin-nav a { color: #fff; font-size: 18px; text-decoration: none; padding: .35rem .5rem; border-radius: 4px; }
.admin-nav a:hover, .admin-nav a:focus { background: #333; outline: 2px solid #fff; outline-offset: 2px; }
.admin-main { max-width: 60rem; margin: 2rem auto; padding: 0 1.25rem; }
.admin-main h1 { font-size: 2rem; margin: 0 0 .5rem; }
.photo-edit-header, .admin-page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.photo-edit-header h1, .admin-page-header h1 { margin: 0; }
.admin-main h2 { font-size: 1.4rem; }
.lead { color: #444; }
.button {
  display: inline-block; background: #1a5d38; color: #fff; font-size: 18px;
  padding: .75rem 1.5rem; border: 0; border-radius: 6px; text-decoration: none; cursor: pointer;
}
.button:hover, .button:focus { background: #14482b; outline: 3px solid #1a5d38; outline-offset: 2px; }
.button-large { font-size: 1.5rem; padding: 1.25rem 2.5rem; margin: 1rem 0 2rem; }
.link-button { background: none; border: 0; color: #fff; font-size: 18px; text-decoration: underline; cursor: pointer; padding: .35rem .5rem; }
.flash { padding: .75rem 1rem; border-radius: 6px; }
.flash.notice { background: #e2f0e6; color: #1a5d38; }
.flash.alert { background: #fbe4e4; color: #8c1f1f; }
.dashboard-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-header h1 { font-size: 2.5rem; line-height: 1; }
.dashboard-eyebrow {
  margin: 0 0 .25rem; color: #8f98a3; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.dashboard-date { margin: 0; color: #aeb5bd; font-size: .9rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem;
  margin-bottom: 2rem;
}
.admin-main .stat-card {
  display: flex; min-height: 7rem; box-sizing: border-box; flex-direction: column;
  justify-content: center; padding: 1.15rem 1.25rem; border: 1px solid #3d454d;
  border-radius: 10px; background: #23272c; color: #e5e7eb; text-decoration: none;
}
.admin-main a.stat-card:hover { border-color: #71808f; background: #292e34; transform: translateY(-1px); }
.stat-value { font-size: 2rem; font-weight: 750; line-height: 1.1; }
.stat-value-small { font-size: 1.25rem; }
.stat-label { margin-top: .4rem; color: #9ea7b1; font-size: .82rem; }
.recent-panel {
  overflow: hidden; border: 1px solid #3d454d; border-radius: 10px; background: #23272c;
}
.recent-header { padding: 1.25rem 1.4rem 1rem; border-bottom: 1px solid #3d454d; }
.recent-header h2 { margin: 0; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-list li + li { border-top: 1px solid #353c43; }
.admin-main .activity-link {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center;
  gap: 1rem; padding: .9rem 1.4rem; color: #e5e7eb; text-decoration: none;
}
.admin-main .activity-link:hover { background: #292e34; }
.activity-kind {
  display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 8px;
  background: #343b43; color: #b9d4ed; font-size: .8rem; font-weight: 750;
}
.activity-details { display: flex; min-width: 0; flex-direction: column; }
.activity-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-details span { color: #9ea7b1; font-size: .78rem; }
.activity-arrow { color: #89939e; font-size: 1.25rem; }
.empty-state { margin: 0; padding: 1.4rem; color: #9ea7b1; }
@media (max-width: 650px) {
  .dashboard-date { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main .activity-link { padding: .85rem 1rem; }
}
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 3px solid #1a5d38; outline-offset: 2px; }

.admin-form .field { margin: 1rem 0; display: flex; flex-direction: column; gap: .4rem; max-width: 26rem; }
.admin-form label { font-weight: 600; }
.admin-form input[type="email"], .admin-form input[type="password"] {
  font-size: 18px; padding: .6rem .75rem; border: 2px solid #999; border-radius: 6px;
}

/* --- Photo admin (Phase 4) --- */
.photo-table { border-collapse: collapse; width: 100%; margin: 1rem 0; background: #fff; }
.photo-table th, .photo-table td { border-bottom: 1px solid #ddd; padding: .6rem .75rem; text-align: left; vertical-align: middle; }
.photo-table th { background: #eaeae6; }
.photo-table td:last-child { white-space: nowrap; }
.photo-table td:last-child form { display: inline-block; margin: 0 0 0 .5rem; vertical-align: middle; }
.photo-table img { display: block; border-radius: 4px; }
.button-small { font-size: 16px; padding: .45rem .9rem; }
.button-secondary { background: #556; }
.button-secondary:hover, .button-secondary:focus { background: #444; }
.button-danger { background: #8c1f1f; }
.button-danger:hover, .button-danger:focus { background: #6e1818; }
.filter-form { background: #fff; padding: 1rem; border-radius: 6px; margin: 1rem 0; }
.filter-row { display: flex; flex-wrap: nowrap; gap: .75rem; align-items: center; overflow: visible; }
.filter-row label, .filter-row input[type="submit"] { flex: 0 0 auto; }
.filter-row label { font-weight: 600; }
.filter-row input[type="search"], .filter-row select {
  min-width: 0; flex: 1 1 12rem; font-size: 18px; padding: .4rem .6rem;
}
.photo-form { background: #fff; padding: 1.25rem 1.5rem; border-radius: 6px; max-width: none; }
.photo-form .field { margin: 1.1rem 0; display: flex; flex-direction: column; gap: .4rem; }
.photo-form label, .photo-form legend { font-weight: 600; }
.help-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.2em; height: 1.2em; margin-left: .25rem; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: none;
  color: inherit; font: inherit; font-size: .8em; line-height: 1; cursor: help;
  vertical-align: middle;
}
.photo-form input[type="text"], .photo-form input[type="date"], .photo-form textarea, .photo-form select {
  font-size: 18px; padding: .6rem .75rem; border: 2px solid #999; border-radius: 6px; max-width: 40rem;
}
.photo-form .preview { max-width: 400px; border-radius: 6px; margin: .5rem 0; }
.photo-form .checkbox { display: flex; gap: .5rem; align-items: center; font-weight: 400; margin: .3rem 0; }
.photo-form .checkbox input { width: 1.3rem; height: 1.3rem; }
.photo-form .actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.photo-form details { margin: 1.2rem 0; }
.photo-form summary { font-weight: 600; cursor: pointer; }
.form-errors { background: #fbe4e4; border: 2px solid #8c1f1f; border-radius: 6px; padding: .75rem 1.25rem; }
.reversible-actions { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid #ddd; display: flex; gap: 1rem; }
.muted { color: #555; }
trix-editor { font-size: 18px; border: 2px solid #999; border-radius: 6px; padding: .5rem; }
/* Hide Trix attachment/file controls (plan section 7: no media workflow) */
trix-editor .trix-button-group--file-tools { display: none; }


/* --- Admin dark theme --- */
body.admin {
  background: #17191c;
  color: #e5e7eb;
  color-scheme: dark;
}
.admin-nav {
  background: #101214;
  border-bottom: 1px solid #343a40;
}
.admin-nav a:hover, .admin-nav a:focus { background: #2b3036; }
.admin-main a:not(.button) { color: #a9c9e8; }
.admin-main .lead, .admin-main .muted { color: #aeb5bd; }
.admin-main .button { background: #2d7a4b; }
.admin-main .button:hover, .admin-main .button:focus { background: #3a9360; }
.admin-main .button-secondary { background: #4d5661; }
.admin-main .button-secondary:hover, .admin-main .button-secondary:focus { background: #616c78; }
.admin-main .button-danger { background: #a23b3b; }
.admin-main .button-danger:hover, .admin-main .button-danger:focus { background: #c04b4b; }
.admin-main .flash.notice { background: #1d3b2b; color: #a8e0bb; }
.admin-main .flash.alert { background: #482326; color: #ffb4b4; }
.admin-main input:not(.button), .admin-main select, .admin-main textarea {
  background: #202328;
  color: #e5e7eb;
  border-color: #59616b;
}
.admin-main select option { background: #202328; color: #e5e7eb; }
.admin-main input[type="file"] { background: transparent; border: 0; }
.admin-main input[type="checkbox"] { accent-color: #4ca96e; }
.photo-table { background: #23272c; }
.photo-table th { background: #30363d; }
.photo-table th, .photo-table td { border-color: #454c54; }
.filter-form, .photo-form { background: #23272c; }
.form-errors { background: #482326; border-color: #a23b3b; }
.reversible-actions { border-color: #454c54; }
.admin-main trix-editor {
  background: #202328;
  color: #e5e7eb;
  border-color: #59616b;
}
.admin trix-toolbar .trix-button-group {
  background: #2a2f35;
  border-color: #59616b;
}
.admin trix-toolbar .trix-button {
  color: #e5e7eb;
  border-color: #59616b;
}
.admin trix-toolbar .trix-button--icon::before { filter: invert(1); }
.admin trix-toolbar .trix-button.trix-active { background: #38566b; color: #fff; }
.admin trix-toolbar .trix-dialog { background: #23272c; box-shadow: 0 .3em 1em #0d0e0f; }
.admin trix-toolbar .trix-input--dialog { background: #202328; color: #e5e7eb; border-color: #59616b; }

.selected-images-index .showcase-set-admin {
  background: #23272c;
  border: 1px solid #3d454d;
}
.selected-images-index .showcase-status--visible { color: #7ed49b; }
.selected-images-index .showcase-status--hidden { color: #ff9999; }

/* --- Public photo page (plain temporary markup, Phase 4) --- */
.photo-detail { max-width: 56rem; margin: 2rem auto; padding: 0 1.25rem; font-family: system-ui, sans-serif; }
.photo-detail img { border-radius: 6px; height: auto; }
.photo-detail > .rich-text { margin-top: 3rem; line-height: 1.6; }
.not-found { max-width: 40rem; margin: 3rem auto; text-align: center; }


/* ============ Public theme (quiet portfolio grid) ============ */
body.theme {
  background: #17181a;
  color: #e6e6e6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid #2a2c2f;
}
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; color: #fff; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-header nav a { color: #c9c9c9; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus { color: #fff; outline: 2px solid #7aa3c8; outline-offset: 3px; }
.content { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.hero { margin-bottom: 2rem; }
.hero h1 { font-size: 2rem; margin: 1rem 0 .5rem; }
.hero-image { width: 100%; height: auto; border-radius: 6px; }
.page h1 { font-size: 2rem; margin: .5rem 0 1rem; }
.page > figure { margin: 0 0 1.5rem; }
.page-about > figure .hero-image {
  aspect-ratio: 8 / 3;
  object-fit: cover;
  object-position: center 70%;
}
.page-about .trix-content h2 { font-size: 1.4rem; margin: 1.75rem 0 .5rem; }
.page-about .trix-content h3 { font-size: 1.05rem; margin: 1.25rem 0 .35rem; }
.page-about .trix-content ul { margin: 0 0 1.25rem; }
.rich-text { line-height: 1.7; }
.page-body a { color: #9cc0e0; }
.page .page-body .trix-content p { margin: 0 0 1.25rem; }
.section-head h1 { font-size: 1.35rem; font-weight: 500; letter-spacing: .04em; margin: 0 0 1rem; }
.showcase { display: grid; gap: 1.25rem; }
.showcase-set {
  display: grid;
  gap: 5px;
  overflow: hidden;
  background: #000;
}
.showcase-set a { display: block; min-width: 0; min-height: 0; }
.showcase-preview > [data-showcase-preview-target="item"] { min-width: 0; min-height: 0; }
.showcase-set .card-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.showcase-set--landscape.showcase-set--count-1,
.showcase-set--landscape.showcase-set--count-2,
.showcase-set--landscape.showcase-set--count-3 {
  grid-template-columns: repeat(var(--showcase-count), minmax(0, 1fr));
}
.showcase-set--landscape .card-image { aspect-ratio: 3 / 2; }
.showcase-set--landscape.showcase-set--count-1 { --showcase-count: 1; }
.showcase-set--landscape.showcase-set--count-2 { --showcase-count: 2; }
.showcase-set--landscape.showcase-set--count-3 { --showcase-count: 3; }
.showcase-set--portrait.showcase-set--count-1,
.showcase-set--portrait.showcase-set--count-2,
.showcase-set--portrait_right.showcase-set--count-1,
.showcase-set--portrait_right.showcase-set--count-2 {
  grid-template-columns: repeat(var(--showcase-count), minmax(0, 1fr));
}
.showcase-set--portrait.showcase-set--count-1 { --showcase-count: 1; }
.showcase-set--portrait.showcase-set--count-2 { --showcase-count: 2; }
.showcase-set--portrait_right.showcase-set--count-1 { --showcase-count: 1; }
.showcase-set--portrait_right.showcase-set--count-2 { --showcase-count: 2; }
.showcase-set--portrait.showcase-set--count-1 .card-image,
.showcase-set--portrait.showcase-set--count-2 .card-image,
.showcase-set--portrait_right.showcase-set--count-1 .card-image,
.showcase-set--portrait_right.showcase-set--count-2 .card-image { aspect-ratio: 2 / 3; }
.showcase-set--portrait_three.showcase-set--count-1,
.showcase-set--portrait_three.showcase-set--count-2,
.showcase-set--portrait_three.showcase-set--count-3 {
  grid-template-columns: repeat(var(--showcase-count), minmax(0, 1fr));
}
.showcase-set--portrait_three.showcase-set--count-1 { --showcase-count: 1; }
.showcase-set--portrait_three.showcase-set--count-2 { --showcase-count: 2; }
.showcase-set--portrait_three.showcase-set--count-3 { --showcase-count: 3; }
.showcase-set--portrait_three .card-image { aspect-ratio: 2 / 3; }
.showcase-set--portrait.showcase-set--count-3 {
  aspect-ratio: 17 / 12;
  grid-template-columns: 8fr 9fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.showcase-set--portrait.showcase-set--count-3 a:first-child,
.showcase-set--portrait.showcase-set--count-3 .showcase-preview-lead { grid-row: 1 / 3; }
.showcase-set--portrait.showcase-set--count-3 .card-image { aspect-ratio: 2 / 3; }
.showcase-set--portrait_right.showcase-set--count-3 {
  aspect-ratio: 17 / 12;
  grid-template-columns: 9fr 8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.showcase-set--portrait_right.showcase-set--count-3 a:first-child,
.showcase-set--portrait_right.showcase-set--count-3 .showcase-preview-lead {
  grid-column: 2;
  grid-row: 1 / 3;
}
.showcase-set--portrait_right.showcase-set--count-3 .card-image { aspect-ratio: 2 / 3; }
.showcase-preview-wrap { margin-top: 1.5rem; }
.showcase-preview-wrap h2 { margin-bottom: .5rem; }
.showcase-preview { max-width: 42rem; }
.showcase-set-list { display: grid; gap: 1rem; }
.showcase-set-admin {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1rem; background: #fff; border-radius: 6px;
}
.showcase-set-admin h2 { margin: 0; font-size: 1.2rem; }
.showcase-status--visible { color: #1a5d38; }
.showcase-status--hidden { color: #8c1f1f; font-style: italic; }
.showcase-set-admin p { margin: .25rem 0 .75rem; }
.showcase-admin-thumbs { display: flex; gap: .5rem; align-items: center; }
.showcase-admin-thumbs img { width: 6rem; height: 4rem; object-fit: cover; border-radius: 4px; }
.showcase-set-admin .actions {
  display: flex; flex-shrink: 0; flex-wrap: nowrap; align-items: center; gap: .5rem;
}
.showcase-set-admin .actions form { margin: 0; }
.showcase-form .actions { justify-content: flex-end; }
.display-order {
  width: 7rem; max-width: 7rem; min-height: 3.25rem; box-sizing: border-box;
  padding: .6rem .75rem; border: 2px solid #999; border-radius: 6px; font-size: 18px;
}
.showcase-visible-field {
  width: max-content; flex-direction: row !important; align-items: center; gap: .5rem;
}
.selected-images-summary { margin: 1.5rem 0; padding: 1rem; background: #f4f4f2; border-radius: 6px; }
.selected-images-summary h2 { margin-top: 0; }
@media (max-width: 600px) {
  .showcase-set--landscape.showcase-set--count-1,
  .showcase-set--landscape.showcase-set--count-2,
  .showcase-set--landscape.showcase-set--count-3,
  .showcase-set--portrait.showcase-set--count-1,
  .showcase-set--portrait.showcase-set--count-2,
  .showcase-set--portrait.showcase-set--count-3,
  .showcase-set--portrait_right.showcase-set--count-1,
  .showcase-set--portrait_right.showcase-set--count-2,
  .showcase-set--portrait_right.showcase-set--count-3,
  .showcase-set--portrait_three.showcase-set--count-1,
  .showcase-set--portrait_three.showcase-set--count-2,
  .showcase-set--portrait_three.showcase-set--count-3 {
    display: block;
    aspect-ratio: auto;
  }
  .showcase-set a { margin-bottom: 5px; }
  .showcase-set a:last-child { margin-bottom: 0; }
  .showcase-set .card-image { aspect-ratio: 3 / 2; height: auto; }
  .showcase-set--portrait .card-image,
  .showcase-set--portrait_right .card-image,
  .showcase-set--portrait_three .card-image { aspect-ratio: 2 / 3; }
  .showcase-set-admin { align-items: flex-start; flex-direction: column; }
}
.grid {
  columns: 3;
  column-gap: 1.25rem;
}
.grid-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  color: inherit;
  text-decoration: none;
}
@media (max-width: 900px) { .grid { columns: 2; } }
@media (max-width: 600px) { .grid { columns: 1; } }
.card-image { width: 100%; height: auto; border-radius: 6px; display: block; background: #2a2c2f; }
.card-title { display: block; margin-top: .4rem; font-size: .95rem; color: #d5d5d5; }
.gallery-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 600px) { .gallery-list { grid-template-columns: 1fr; } }
.gallery-link { display: block; color: inherit; text-decoration: none; text-align: center; }
.gallery-link img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.gallery-link span { display: block; margin-top: .4rem; }
.photo-detail { max-width: 1100px; }
.photo-detail h1 { font-size: 2rem; margin-bottom: .25rem; }
.photo-gallery { margin: 1rem 0; }
.photo-gallery a { color: #9cc0e0; }
.photo-main { margin: 1rem 0; }
.detail-image { width: 100%; height: auto; border-radius: 6px; background: #2a2c2f; }
.photo-main figcaption { margin-top: .25rem; text-align: right; color: #9a9a9a; font-size: .9rem; }
.photo-main a { color: #9cc0e0; }
.muted { color: #9a9a9a; }
.technical { color: #aaa; font-size: .9rem; font-style: italic; margin: 1.25rem 0; }
.site-footer { border-top: 1px solid #2a2c2f; padding: 1.5rem; text-align: center; color: #9a9a9a; font-size: .95rem; }
.site-footer a { color: #9cc0e0; }
a:focus, button:focus, input:focus, select:focus, textarea:focus, trix-editor:focus-within {
  outline: 2px solid #7aa3c8; outline-offset: 2px;
}


/* --- Public styling experiment: editorial gallery --- */
body.theme {
  --paper: #151617;
  --ink: #f2f0eb;
  --muted-ink: #aaa69e;
  --line: #383a3c;
  --accent: #b8d1df;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.7;
}

.theme h1,
.theme h2,
.theme h3,
.theme h4,
.theme .brand,
.theme .site-header nav,
.theme .eyebrow,
.theme .card-title,
.theme .showcase-caption,
.theme .photo-main figcaption,
.theme .technical,
.theme .photo-gallery,
.theme .site-footer {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme .site-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.4rem clamp(1rem, 3vw, 2.5rem);
  border: 0;
}

.theme .brand {
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 650;
  letter-spacing: -.025em;
}

.theme .site-header nav {
  gap: clamp(.8rem, 2.2vw, 1.8rem);
}

.theme .site-header nav a {
  position: relative;
  padding: .25rem 0;
  color: var(--muted-ink);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.theme .site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.theme .site-header nav a:hover,
.theme .site-header nav a:focus-visible {
  color: var(--ink);
  outline: 0;
}

.theme .site-header nav a:hover::after,
.theme .site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme .content {
  width: min(100% - clamp(2rem, 6vw, 5rem), 1320px);
  max-width: none;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 4rem) 0 clamp(2.75rem, 5.5vw, 5.5rem);
}

.theme .hero {
  margin: 0 0 clamp(3rem, 8vw, 7rem);
}

.theme .hero:has(.page-body:empty):not(:has(.hero-figure)) {
  display: none;
}

.theme .hero-figure,
.theme .photo-main {
  margin: 0;
}

.theme .hero-image,
.theme .detail-image,
.theme .gallery-link img,
.theme .card-image {
  border-radius: 0;
}

.theme .hero-figure figcaption,
.theme .photo-main figcaption {
  margin-top: .65rem;
  color: var(--muted-ink);
  font-size: .72rem;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

.theme .hero-figure figcaption a,
.theme .page-body a,
.theme .photo-main a,
.theme .photo-gallery a,
.theme .site-footer a {
  color: var(--accent);
  text-underline-offset: .18em;
}

.theme h1,
.theme h2,
.theme h3 {
  line-height: 1.12;
  letter-spacing: -.035em;
}

.theme .showcase {
  display: grid;
  gap: clamp(4rem, 9vw, 8rem);
}

.theme .eyebrow {
  margin: 0;
  color: var(--muted-ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.theme .showcase-set {
  gap: clamp(6px, .75vw, 12px);
  background: transparent;
}

.theme .showcase-set a {
  position: relative;
  overflow: hidden;
  background: #e4e0d8;
}

.theme .showcase-set .card-image {
  transition: filter 250ms ease, transform 500ms cubic-bezier(.2, .65, .3, 1);
}

.theme .showcase-set a::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgb(0 0 0 / .62));
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.theme .showcase-caption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: .9rem;
  left: 1rem;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(.35rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.theme .showcase-set a:hover .card-image,
.theme .showcase-set a:focus-visible .card-image {
  filter: brightness(.88);
  transform: scale(1.015);
}

.theme .showcase-set a:hover::after,
.theme .showcase-set a:focus-visible::after,
.theme .showcase-set a:hover .showcase-caption,
.theme .showcase-set a:focus-visible .showcase-caption {
  opacity: 1;
  transform: none;
}

.theme .showcase-set a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  z-index: 2;
}

.theme .page,
.theme .photo-detail {
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

.theme .page > h1,
.theme .photo-detail > h1 {
  max-width: 18ch;
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
}

.theme .page-body {
  max-width: 68ch;
  color: #d7d4ce;
}

.theme .page .page-body .trix-content p {
  margin: 0 0 1.5rem;
}

.theme .page-about > figure .hero-image {
  aspect-ratio: 16 / 7;
  object-position: center 68%;
}

.theme .page-about .trix-content h2,
.theme .page-about .trix-content h3 {
  margin-top: 2.5rem;
  font-weight: 600;
}

.theme .grid {
  margin-top: clamp(3rem, 7vw, 6rem);
  columns: 3;
  column-gap: clamp(.75rem, 1.6vw, 1.5rem);
}

.theme .grid-item {
  margin-bottom: clamp(1.75rem, 3vw, 3rem);
}

.theme .card-title {
  margin-top: .7rem;
  color: var(--muted-ink);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.theme .photo-detail > h1 {
  max-width: none;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.theme .photo-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.theme .photo-main > a {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.theme .photo-main--landscape > a {
  width: min(100%, 75rem);
}

.theme .photo-main--landscape .detail-image {
  width: 100%;
}

.theme .detail-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  background: transparent;
}

.theme .photo-detail > .page-body {
  font-size: 1.08em;
}

.theme .technical,
.theme .photo-gallery {
  max-width: 75ch;
  color: var(--muted-ink);
  font-size: .78rem;
}

.theme .site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted-ink);
  font-size: .68rem;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.theme .site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .theme .grid { columns: 2; }
}

@media (max-width: 600px) {
  .theme .site-header {
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .theme .brand { width: 100%; }
  .theme .site-header nav { width: 100%; justify-content: space-between; }
  .theme .site-header nav a { font-size: .62rem; }
  .theme .content { padding-top: 3.5rem; }
  .theme .showcase { gap: 3.5rem; }
  .theme .showcase-set { background: transparent; }
  .theme .showcase-set a { margin-bottom: 1rem; overflow: visible; background: transparent; }
  .theme .showcase-set .card-image {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .theme .showcase-set a::after { display: none; }
  .theme .showcase-caption {
    position: static;
    display: block;
    margin-top: .5rem;
    color: var(--muted-ink);
    font-size: .62rem;
    opacity: 1;
    transform: none;
  }
  .theme .showcase-set a:hover .card-image,
  .theme .showcase-set a:focus-visible .card-image { filter: none; transform: none; }
  .theme .grid { columns: 1; }
  .theme .site-footer { line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  .theme *, .theme *::before, .theme *::after { scroll-behavior: auto !important; transition: none !important; }
}


.theme .gallery-description {
  max-width: 90ch;
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.theme .page-body .trix-content h2 {
  margin: 2.5rem 0 .75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
}

.theme .page-body .trix-content h3 {
  margin: 2rem 0 .6rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}
