/* Public browsing shares the landing page's brand tokens, fonts and navigation. */
.public-main  {
  padding-top: 54px;
  padding-bottom: 64px;
}

.public-main h1, .story-copy h3, .maker-card h2  {
  overflow-wrap: anywhere;
}

.explore-heading  {
  padding: 15px 0 54px;
}

.public-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr);
  align-items: center;
  gap: 64px;
}

.public-heading-copy {
  min-width: 0;
}

.explore-heading h1  {
  font-size: clamp(45px, 5vw, 69px);
  margin-top: 20px;
}

.explore-heading h1 em  {
  display: inline;
}

.public-heading-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 640px;
  margin-top: 23px;
  font-size: 16px;
}

.discovery-panel,
.studio-contact-panel {
  min-width: 0;
  padding: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.discovery-mark {
  display: block;
  margin-bottom: 20px;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}

.discovery-panel h2,
.studio-contact-panel h2 {
  margin-top: 13px;
  font: 36px/1.12 var(--serif);
  letter-spacing: -.7px;
}

.discovery-panel > p:not(.eyebrow),
.studio-contact-panel > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.discovery-panel .public-search {
  margin-top: 25px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

/* Search gets a full row; country and the submit button share the row below. */
.discovery-panel .public-search input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  padding-inline: 12px;
}

.discovery-panel .public-search select { width: 100%; }
.discovery-panel .public-search .button { min-height: 48px; }

.studio-heading {
  align-items: start;
}

.studio-contact-panel {
  margin-top: 52px;
  padding: 26px;
}

.studio-contact-panel h2 {
  font-size: 30px;
}

.studio-contact-panel .public-contact {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 20px;
}

.studio-contact-panel .contact-button {
  background: var(--accent);
  color: var(--canvas);
  min-height: 48px;
}

.studio-contact-panel .contact-email {
  align-self: flex-start;
  line-height: 1.6;
}

.studio-share {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.studio-share .button {
  width: 100%;
}

/* An article action stays compact beside its editorial heading. */
.post-share {
  padding-top: 0;
  border-top: 0;
}

.post-share .button {
  width: auto;
}

.studio-share-status {
  font-size: 13px;
  line-height: 1.6;
}

.studio-share-status:not(:empty) {
  margin-top: 12px;
}

.studio-share-link {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}

.breadcrumb  {
  margin-bottom: 29px;
  font-size: 13px;
}

.collection-toolbar  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.collection-toolbar h2  {
  font-size: 31px;
  flex-shrink: 0;
}

.public-search  {
  display: flex;
  gap: 9px;
  width: min(100%, 485px);
}

.public-search input  {
  min-width: 0;
  flex: 1;
  font: inherit;
  font-size: 14px;
  padding: 13px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.public-search input:focus-visible  {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only  {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.search-summary  {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.search-summary a  {
  margin-left: 14px;
  text-decoration: underline;
  color: var(--accent);
}

.story-grid  {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 34px 26px;
  margin-top: 34px;
}

.story-card  {
  min-width: 0;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-main  {
  display: block;
  flex: 1;
}

.story-cover  {
  position: relative;
  aspect-ratio: 4 / 4.6;
  background: var(--soft);
  overflow: hidden;
}

.story-placeholder  {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  color: var(--muted);
  font-size: 45px;
  opacity: .45;
}

.story-cover img  {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.story-main:hover .story-cover img  {
  transform: scale(1.025);
}

.photo-count  {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 4px 11px;
  border-radius: 30px;
  background: #152a23bb;
  color: white;
  font-size: 11px;
}

.story-copy  {
  padding: 22px 23px 12px;
}

.story-copy h3  {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.13;
  letter-spacing: -.5px;
}

.story-copy > p  {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-category  {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.story-meta  {
  margin: 10px 23px 0;
  padding: 15px 0 19px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.story-meta > a  {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.story-meta > span  {
  color: var(--muted);
  font-size: 11px;
}

.story-meta a:hover  {
  text-decoration: underline;
}

.public-empty  {
  padding: 80px 20px;
  text-align: center;
}

.public-empty h1  {
  font-size: clamp(38px,5vw,59px);
  margin-top: 18px;
}

.public-empty h2  {
  font-size: 36px;
}

.public-empty p  {
  max-width: 540px;
  margin: 19px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.public-empty .hero-actions  {
  justify-content: center;
}

.public-star  {
  display: inline-block;
  color: var(--gold);
  font-size: 37px;
  margin-bottom: 20px;
}

.collection-empty  {
  padding-block: 90px;
}

.public-empty .text-link  {
  margin-top: 22px;
}

.public-pagination  {
  text-align: center;
  margin-top: 42px;
}

.public-pagination > p  {
  font-size: 13px;
  color: var(--muted);
}

.public-pagination > div  {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 15px;
}

.page-button  {
  min-height: 43px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
}

.public-contact  {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 20px;
  align-items: center;
  margin-top: 24px;
}

.contact-button  {
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  min-height: 45px;
  padding: 11px 16px;
  overflow-wrap: anywhere;
}

.contact-email  {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.portfolio-bio  {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.article-heading  {
  max-width: 950px;
  padding-bottom: 38px;
}

.article-heading h1  {
  font-size: clamp(42px,5vw,65px);
  margin-top: 19px;
}

.article-byline  {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 25px;
  margin-top: 25px;
  font-size: 14px;
}

.article-byline > span  {
  color: var(--muted);
  font-size: 13px;
}

.article-byline a:hover  {
  text-decoration: underline;
}

.public-tags  {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.public-tags > span  {
  background: var(--soft);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 12px;
}

.article-layout  {
  display: grid;
  grid-template-columns: minmax(0,1fr) 290px;
  gap: 55px;
  align-items: start;
}

.article-work  {
  min-width: 0;
}

.public-gallery  {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.gallery-photo  {
  position: relative;
  aspect-ratio: 1;
  background: var(--soft);
  border-radius: 7px;
  overflow: hidden;
}

.gallery-photo:first-child  {
  grid-column: 1/-1;
  aspect-ratio: 4/3;
  max-height: 570px;
}

.gallery-photo img  {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: relative;
}

.gallery-photo:first-child img  {
  object-fit: contain;
}

.gallery-number  {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 22px;
  height: 22px;
  text-align: center;
  background: #152a23b3;
  color: white;
  font-size: 11px;
  border-radius: 50%;
}

.gallery-hint  {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

.article-body  {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.95;
  margin-top: 32px;
}

.maker-card  {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 26px;
}

.maker-card h2  {
  font-size: 31px;
  margin-top: 17px;
}

.maker-location  {
  color: var(--muted);
  font-size: 13px;
  margin-top: 13px;
}

.maker-bio  {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-top: 19px;
}

.maker-card .public-contact  {
  flex-direction: column;
  align-items: start;
  gap: 12px;
}

.maker-card > .text-link  {
  margin-top: 24px;
}

/* The dialog fills the screen; photos remain uncropped inside a swipeable rail. */
.viewer-open  {
  overflow: hidden;
}

.photo-viewer  {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  margin: 0;
  background: #111713;
  color: white;
}

.photo-viewer::backdrop  {
  background: #111713;
}

.photo-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.viewer-header {
  min-height: 88px;
  padding: max(18px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 18px max(28px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #ffffff12;
}

.viewer-header > div {
  min-width: 0;
}

.viewer-title {
  margin: 0 0 6px;
  font: 24px/1.2 Newsreader, Georgia, serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#viewer-count {
  color: #b5c5bb;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.viewer-button {
  flex-shrink: 0;
  border: 1px solid #ffffff35;
  border-radius: 999px;
  background: #18251fe6;
  color: white;
  min-height: 46px;
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.viewer-button:hover:not([aria-disabled="true"]) {
  background: #375346;
}

.viewer-button[aria-disabled="true"] {
  opacity: .3;
  cursor: default;
}

.viewer-button:focus-visible,
.viewer-thumbnail:focus-visible,
.viewer-slides:focus-visible {
  outline: 2px solid #e4cca1;
  outline-offset: -4px;
}

.viewer-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.viewer-slides {
  height: 100%;
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom;
  cursor: grab;
}

.viewer-slides::-webkit-scrollbar,
.viewer-thumbnails::-webkit-scrollbar {
  display: none;
}

.viewer-slides.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.viewer-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 20px 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  user-select: none;
}

.viewer-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.viewer-placeholder {
  position: absolute;
  color: #ffffff35;
  font-size: 40px;
}

.viewer-unavailable {
  color: #b5c5bb;
  font-size: 15px;
}

.viewer-previous,
.viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 22px;
}

.viewer-previous { left: 24px; }
.viewer-next { right: 24px; }

.viewer-footer {
  padding: 0 max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  min-width: 0;
}

.viewer-caption {
  margin: 0 auto 14px;
  max-width: 680px;
  max-height: 64px;
  overflow-y: auto;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.viewer-caption:empty { display: none; }

.viewer-thumbnails {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: max-content;
  margin: 0 auto;
  padding: 4px;
  scrollbar-width: none;
}

.viewer-thumbnail {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 62px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #ffffff0a;
  opacity: .5;
  cursor: pointer;
}

.viewer-thumbnail[aria-current="true"] {
  border-color: #e4cca1;
  opacity: 1;
}

.viewer-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.viewer-thumbnail span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: #111713d9;
  color: white;
  border-radius: 3px;
  padding: 0 4px;
  font-size: 11px;
}

.viewer-hint {
  margin: 9px 0 0;
  color: #a0b1a7;
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
}

.viewer-touch-hint { display: none; }

@media (pointer: coarse) {
  .viewer-touch-hint { display: inline; }
  .viewer-key-hint { display: none; }
}

@media (max-height: 480px) {
  .viewer-header { min-height: 60px; padding-block: 8px; }
  .viewer-thumbnails, .viewer-hint { display: none; }
  .viewer-caption { max-height: 42px; margin-bottom: 0; }
  .viewer-footer { padding-bottom: 8px; }
}

@media (max-width: 1000px)  {
  .public-heading-grid {
    gap: 32px;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, .9fr);
  }
  .discovery-panel, .studio-contact-panel { padding: 24px; }
  .story-grid  {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .article-layout  {
    grid-template-columns: minmax(0,1fr) 245px;
    gap: 30px;
  }
  .maker-card  {
    padding: 22px;
  }
  .maker-card h2  {
    font-size: 28px;
  }
}

@media (max-width: 820px) {
  .public-heading-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .studio-contact-panel { margin-top: 0; }
  .discovery-mark { display: none; }
  .discovery-panel h2 br, .studio-contact-panel h2 br { display: none; }
}

@media (max-width: 680px)  {
  .public-main  {
    padding-top: 30px;
    padding-bottom: 25px;
  }
  .explore-heading  {
    padding-bottom: 35px;
  }
  .explore-heading h1  {
    font-size: 45px;
    line-height: 1.08;
  }
  .public-heading-copy > p:not(.eyebrow) {
    font-size: 15px;
    margin-top: 20px;
  }
  .discovery-panel, .studio-contact-panel { padding: 22px; }
  .discovery-panel h2, .studio-contact-panel h2 { font-size: 30px; }
  .collection-toolbar  {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-bottom: 22px;
  }
  .collection-toolbar h2  {
    font-size: 28px;
  }
  .public-search  {
    width: 100%;
  }
  .public-search input  {
    padding-inline: 12px;
    font-size: 13px;
  }
  .public-search .button  {
    padding-inline: 15px;
    min-height: 46px;
  }
  .story-grid  {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
  }
  .story-cover  {
    aspect-ratio: 4/4.3;
  }
  .story-copy  {
    padding: 20px 20px 10px;
  }
  .story-copy h3  {
    font-size: 29px;
  }
  .story-meta  {
    margin-inline: 20px;
  }
  .public-empty  {
    padding: 60px 8px;
  }
  .public-empty h2  {
    font-size: 31px;
  }
  .public-empty p  {
    font-size: 14px;
  }
  .article-heading  {
    padding-bottom: 28px;
  }
  .article-heading h1  {
    font-size: 42px;
    line-height: 1.1;
  }
  .article-byline  {
    margin-top: 21px;
    font-size: 13px;
  }
  .article-layout  {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .public-gallery  {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px;
  }
  .article-body  {
    font-size: 16px;
    margin-top: 25px;
  }
  .maker-card  {
    padding: 25px;
  }
  .maker-card .public-contact  {
    flex-direction: row;
    align-items: center;
  }
  .viewer-header {
    min-height: 78px;
    padding-inline: 16px;
  }
  .viewer-title { font-size: 20px; }
  .viewer-slide { padding: 14px 8px; }
  .viewer-previous, .viewer-next {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }
  .viewer-previous { left: 10px; }
  .viewer-next { right: 10px; }
  .viewer-footer { padding-inline: 12px; }
  .viewer-thumbnails { gap: 7px; }
  .viewer-thumbnail {
    flex-basis: 48px;
    width: 48px;
    height: 52px;
  }
}

/* Country choices wrap with search on narrow screens. */
.public-search { flex-wrap: wrap; }
.public-search select {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 170px;
  font: inherit;
  padding: 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* Compact Explore navigation leaves footer and pagination content unobstructed. */
.explore-scroll:not([hidden]) {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #f2f5f0;
  box-shadow: 0 3px 14px #224c4020;
}
.explore-scroll button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}
.explore-scroll button:hover:not(:disabled) { background: #e0ebe4; }
.explore-scroll button:focus-visible { outline: 2px solid var(--accent); }
.explore-scroll button:disabled { opacity: .3; cursor: default; }
body:has(.explore-scroll) .site-footer { padding-bottom: 130px; }

/* Keep public pages clear of display cutouts in installed/mobile browsers. */
body {
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Long legal documents keep a readable line length and wrap contact details. */
.legal-document { max-width: 78ch; margin-inline: auto; overflow-wrap: anywhere; }
.legal-document h1 { line-height: 1.15; }
.legal-document h2 { margin-top: 2rem; font-size: 1.35rem; line-height: 1.35; }
.legal-document li + li { margin-top: .65rem; }
.legal-contact { padding: 1rem; background: var(--soft); border-radius: 12px; }
.legal-contact dt { font-weight: 600; }
.legal-contact dd { margin: 0 0 .75rem; white-space: pre-line; }
.legal-contact dd:last-child { margin-bottom: 0; }
.legal-draft { padding: 1rem; border: 1px solid var(--gold); border-radius: 12px; }

/* Account deletion is a help page, so its headings use a quieter scale. */
.account-deletion h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  letter-spacing: -.5px;
}
.account-deletion h2 {
  margin-top: 28px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.3;
  letter-spacing: 0;
}
