/* stechphoto.com – recreation of the Format "Horizon Left" theme.
   Fonts: Benton Sans (commercial, Font Bureau) → Libre Franklin (free, OFL), self-hosted. */
@import url("/fonts/fonts.css");

:root {
  --font: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --text: #555555;
  --heading: #000000;
  --caption: #333333;
  --muted: #888888;
  --rule: #cccccc;
  --accent: #EE0006;     /* active/hover nav item */
  --link: #00a1f9;
  --nav-left: 50px;
  --nav-width: 223px;
  --img-h: min(700px, calc(100vh - 200px));
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { color: var(--text); background: #fff; font: 300 14px/1 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--heading); font-family: var(--font); font-weight: 700; font-size: 22px; margin: 0; }
p { margin: 0; line-height: 1.45em; }
a { color: var(--link); }
a:hover { color: #94cbff; }
img { max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---------- Navigation (desktop: fixed left column, vertically centred 700px box) ---------- */
.nav { position: fixed; top: 0; left: var(--nav-left); width: var(--nav-width); height: 100%; z-index: 100; background: rgba(255,255,255,.95); }
.nav-container { position: absolute; top: 50%; height: 700px; margin-top: -350px; display: flex; flex-direction: column; }
#logo { margin: 20px 20px 30px 14px; position: relative; }
#logo h1 { font-size: 18px; line-height: 1.1em; font-weight: 700; letter-spacing: -0.005em; }
#logo h1 a { color: #000; text-decoration: none; display: inline-block; max-width: 160px; }
.menu-toggle { display: none; }
.menu { margin-left: 14px; width: 180px; }
.main-nav, .cat-items { list-style: none; margin: 0; padding: 0; }
.cat { border-top: 1px solid var(--rule); }
.main-nav > .cat:last-child { border-bottom: 1px solid var(--rule); }
.cat-btn { all: unset; display: block; width: 100%; cursor: pointer; color: #444; font: 600 12px/1.2 var(--font); padding: .6em 0; }
.cat-btn:hover { color: #000; }
.cat-btn:focus-visible { outline: 2px solid var(--link); }
.cat.open { margin-bottom: 4px; }
.cat.open .cat-btn { border-bottom: 1px solid var(--rule); }
/* Format accordion: jQuery slideUp(190) / slideDown(220), swing ≈ ease-in-out sine */
.cat-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 190ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.cat.open .cat-panel {
  grid-template-rows: 1fr;
  transition-duration: 220ms;
}
html:not(.js) .cat-panel { grid-template-rows: 1fr; } /* no-JS: every section stays reachable */
.cat-panel > .cat-items { overflow: hidden; min-height: 0; }
.cat-items { padding: 0; }
.cat.open .cat-items,
html:not(.js) .cat-items,
html.js.nav-mobile-all-open .cat-items { padding: 6px 0; }
.cat-items .item { line-height: 1.5; margin-bottom: 3px; }
.cat-items a { color: #000; font: 400 12px/1.5 var(--font); text-decoration: none; padding: 3px 6px 3px 1px; }
.cat-items a:hover, .cat-items .selected a { color: var(--accent); }
.additional-text { color: var(--muted); font: 400 11px/1.45 var(--font); padding-top: 16px; }

/* ---------- Gallery: horizontal strip, images 700px tall ---------- */
body.gallery { overflow: hidden; }
body.gallery #content { position: absolute; inset: 0; }
.strip { position: absolute; top: calc(50% - var(--img-h) / 2); left: 0; right: 0; bottom: 0; display: flex; align-items: flex-start;
  overflow-x: auto; overflow-y: hidden; padding-left: calc(var(--nav-left) + var(--nav-width) + 28px); scrollbar-width: thin; outline: none; }
.asset { margin: 0 10px 0 0; flex: 0 0 auto; }
.asset:last-child { margin-right: 100px; }
.asset .img { position: relative; height: var(--img-h); background: #f4f4f4; }
.asset img { height: var(--img-h); width: auto; display: block; }
.asset figcaption { padding: .75em .75em 0 0; color: var(--caption); font-size: 14px; font-weight: 300; line-height: 1.45em; min-height: 2.2em; max-width: 100%; }
.caption-cta { display: none; }

/* ---------- Listing (e.g. Stock Imagery → Places) ---------- */
body.listing #content { margin: 0 20px 0 298px; padding-top: max(20px, calc(50vh - 350px)); }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, 238px); gap: 0 30px; }
.listing-item { text-decoration: none; display: block; padding-bottom: 30px; }
.listing-item .thumb { display: block; aspect-ratio: 1; overflow: hidden; background: #f4f4f4; transition: opacity .3s; }
.listing-item:hover .thumb { opacity: .8; }
.listing-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-item .copy { display: block; text-align: center; color: var(--text); font-size: 12px; line-height: 1.35em; margin-top: 8px; }

/* ---------- Content pages (About, Contact, Shop) ---------- */
body.simple #content { padding: max(40px, calc(50vh - 350px + 40px)) 30px 80px calc(var(--nav-left) + var(--nav-width) + 62px); max-width: 1440px; }
.xl-headline { font-size: 33px; line-height: 1.1; margin-bottom: 0; }
.content-page > .xl-headline { margin-bottom: 70px; }
.content-page p { font-size: 13.5px; line-height: 1.75em; margin-bottom: .75em; }
.about-row { display: flex; gap: 26px; align-items: flex-start; }
.about-img img { width: 300px; height: auto; display: block; }
.about-text { max-width: 640px; padding-top: 2px; }
.contact-block { margin-top: 130px; }
.contact-block .xl-headline { margin-bottom: 6px; }
.contact-form { display: flex; flex-direction: column; width: 465px; max-width: 100%; margin-top: 120px; }
.contact-form input, .contact-form textarea { font: 300 14px/1.4 var(--font); color: #333; border: 1px solid #ddd; padding: 12px 14px; margin: 0 0 -1px; border-radius: 0; background: #fff; }
.contact-form textarea { min-height: 265px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #999; }
.contact-form button { align-self: flex-start; margin-top: 8px; font: 300 14px/1 var(--font); color: #555; background: #fff; border: 1px solid #ccc; padding: 12px 22px; cursor: pointer; }
.contact-form button:hover { background: #f6f6f6; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .turnstile-wrap { margin: 14px 0 4px; max-width: 100%; }
.contact-form .cf-turnstile { width: 100%; }
.form-status { margin-top: 10px; min-height: 1.5em; }
.contact-row { display: flex; gap: 60px; flex-wrap: wrap; }
.contact-row .contact-form { margin-top: 0; }
.contact-text { max-width: 420px; }

.shop-intro { max-width: 640px; margin-bottom: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 320px)); gap: 40px 30px; }
.product h3 { font-size: 15px; margin: 12px 0 4px; }
.product .product-img img { width: 100%; height: 240px; object-fit: cover; display: block; }
.product-meta { color: var(--muted); font-size: 12px !important; margin: 0 !important; }
.product .price { color: #000; font-weight: 600; }
.buy-btn { display: inline-block; border: 1px solid #555; color: #555; padding: 10px 20px; text-decoration: none; font-size: 13px; }
.buy-btn.disabled { border-color: #ccc; color: #999; cursor: not-allowed; }
.shop-note { margin-top: 40px; color: var(--muted); }
.order-status { margin-top: 20px; }

/* ---------- Mobile (Format switches at 767px) ---------- */
@media (max-width: 767px) {
  .nav { left: 0; width: 100vw; height: auto; background: #fff; text-align: left; }
  .nav-container { position: relative; top: 0; height: auto; margin: 0; }
  #logo { margin: 0; padding: 20px 60px 20px 30px; }
  #logo h1 { font-size: 28px; }
  #logo h1 a { max-width: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; background: none; border: 0; padding: 4px; cursor: pointer; }
  .menu-toggle span { display: block; height: 3px; background: #444; }
  .menu { display: none; width: 100%; margin: 0; text-align: center; background: #fff; height: calc(100vh - 100px); overflow-y: auto; padding: 10px 0 40px; }
  body.open-menu .menu { display: block; }
  body.open-menu #content { display: none; }
  .cat, .main-nav > .cat:last-child { border: 0; }
  .cat.open { margin: 0; }
  .cat.open .cat-btn { border-bottom: 0; }
  .cat-btn { text-align: center; font-weight: 400; font-size: 14px; color: rgba(68,68,68,.5); padding: .6em 0; }
  .cat-btn:hover { color: rgba(68,68,68,.5); }
  .cat-items { border: 0; }
  /* Format mobile menu lists every section until a title is clicked, then accordion applies */
  html.js.nav-mobile-all-open .cat-panel { grid-template-rows: 1fr; }
  .cat-items a { font-size: 14px; }
  .cat-items .item { margin: 0; }
  .additional-text { padding-top: 24px; }

  body.gallery #content { top: 0; }
  .strip { padding: 0 0 0 28px; top: 112px; bottom: 0; align-items: center; scroll-snap-type: x mandatory; }
  .asset { scroll-snap-align: center; margin-right: 10px; }
  .asset .img { height: auto; background: none; }
  .asset img { width: 85vw; height: auto; max-height: calc(100vh - 140px); object-fit: contain; }
  .asset.portrait img { width: auto; height: calc(100vh - 150px); max-width: 85vw; }
  .asset figcaption { display: none; }
  .asset.show-caption figcaption { display: block; position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.92); padding: 10px; }
  .asset { position: relative; }
  .caption-cta { display: block; position: absolute; right: 8px; bottom: 8px; background: #000; color: #fff; border: 0; font: 400 14px/1 var(--font); padding: 5px 6px; cursor: pointer; }

  body.listing #content { margin: 0; padding: 102px 30px 30px; }
  .listing-grid { grid-template-columns: 1fr 1fr; gap: 0 15px; }

  body.simple #content { padding: 120px 30px 60px; }
  .content-page > .xl-headline { margin-bottom: 40px; }
  .about-row { flex-direction: column; }
  .about-img img { width: 100%; max-width: 330px; }
  .contact-block { margin-top: 60px; }
  .contact-form { margin-top: 30px; width: 100%; }
}
/* Format-style casual "Save image" / long-press deterrent (not admin) */
.asset img, .listing-item img, .about-img img, .product-img img, .content-page img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.asset .img, .listing-item .thumb, .about-img, .product-img { position: relative; }
.asset .img::after, .listing-item .thumb::after, .about-img::after, .product-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.caption-cta { z-index: 2; }

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

