/* tomcutitta.com — hand-written stylesheet (2026 rebuild). No framework. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/open-sans-latin-var.woff2") format("woff2");
}

:root {
  --ink: #1d1e21;
  --ink-soft: #45474d;
  --muted: #6b6e75;
  --paper: #ffffff;
  --paper-warm: #f6f5f2;
  --night: #222327;
  --night-text: #e9e8e4;
  --line: #dddbd6;
  --accent: #8a6d3b;          /* warm gallery bronze, 4.9:1 on white */
  --accent-light: #d9c49b;    /* for use on --night */
  --error: #a32020;
  --ok: #24663b;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 88px;
  --font: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus, :focus-visible { outline: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: hidden; /* clip the logo's glide so it cannot cause a horizontal scrollbar */
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
/* Simultaneous fade + glide, matching the original MuseResources
   movefadeInRightRelative: opacity 0→1 together with translate3d(100%,0,0)→none,
   default easing (ease), fill-mode both. */
@keyframes fade-glide-in-right {
  from { opacity: 0; transform: translate3d(100%, 0, 0); }
  to   { opacity: 1; transform: none; }
}

/* Logo "Tom Cutitta / Photographer/Digital Artist" on every page.
   Original: .Logo1 gets .u10822.movefadeInRightRelative, 2s duration, 1s delay after load. */
.brand {
  display: block;
  flex: 0 0 auto;
  animation: fade-glide-in-right 2s ease 1s both;
}
.brand img { width: 192px; height: 64px; }

.site-nav ul {
  display: flex; gap: clamp(4px, 2.4vw, 40px);
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: 10px 4px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Type ---------- */
.eyebrow-title {
  margin: 0 0 14px;
  font-weight: 300; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  letter-spacing: 0.28em; line-height: 1.2; text-transform: uppercase;
}
.rule { width: 64px; height: 1px; background: var(--accent); border: 0; margin: 0 0 clamp(28px, 4vw, 48px); }
.center { text-align: center; }
.center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 28px;
  font: 600 0.75rem/1 var(--font); letter-spacing: 0.26em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid currentColor; border-radius: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { color: #fff; border-color: rgba(255,255,255,.8); background: rgba(20,20,22,.35); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Home: hero slideshow ---------- */
.hero { padding: clamp(20px, 3vw, 40px) 0 clamp(28px, 4vw, 48px); }
.slideshow {
  position: relative; margin-inline: auto;
  /* keep the whole 1156x650 artwork visible without upscaling past its native size */
  width: min(100%, 1156px, (100svh - var(--header-h) - 150px) * 1156 / 650);
}
.slides { position: relative; aspect-ratio: 1156 / 650; background: var(--paper-warm); overflow: hidden; }
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.no-js .slide:first-child { opacity: 1; visibility: visible; }

.slide-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 14px; min-height: 46px;
}
.slide-caption p { margin: 0; font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em; }
.slide-controls { display: flex; align-items: center; gap: 6px; }
.slide-controls[hidden] { display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 2px; margin: 0 6px; }
.dot {
  width: 28px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative;
}
.dot::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 21px; height: 2px; background: var(--line);
  transition: background-color .2s;
}
.dot[aria-current="true"]::after { background: var(--ink); }

.hero-explore { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); }

/* ---------- Home: intro (dark band) ---------- */
.intro { background: var(--night); color: var(--night-text); padding: clamp(56px, 8vw, 110px) 0; }
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 504px);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.intro h2 {
  margin: 0 0 24px; font-weight: 300; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem);
  letter-spacing: 0.04em; line-height: 1.3; color: #fff;
}
.intro p { margin: 0 0 1.1em; color: var(--night-text); }
.intro p.lead-out { margin-top: 1.8em; }
.intro figure { margin: 0; }
.intro figure img { width: 100%; aspect-ratio: 504 / 501; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.intro .btn { margin-top: 12px; color: #fff; }
.intro .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.intro .section-cta { text-align: center; margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Home: featured ---------- */
.featured { padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 8vw, 96px); }
.featured-grid {
  display: grid; gap: clamp(8px, 1.2vw, 16px);
  grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  max-width: 1064px; margin-inline: auto;
}
.featured-grid figure { margin: 0; overflow: hidden; background: var(--paper-warm); }
.featured-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.featured-grid figure:hover img { transform: scale(1.025); }
.featured-grid .tall { grid-row: span 2; }
.featured-grid .tall img { aspect-ratio: 1 / 1; }
.featured-grid .wide img { aspect-ratio: 524 / 271; }

/* ---------- Generic page ---------- */
.page { padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 8vw, 110px); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 680px) 247px;
  gap: clamp(32px, 7vw, 120px); align-items: start; justify-content: center;
}
.about-images { margin-top: 12px; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.4em; color: var(--ink-soft); font-size: 1.0625rem; }
.about-images { display: grid; gap: 14px; margin: 0; overflow: hidden; }
.about-images img { width: 100%; }
/* About photos: same fade+glide as the logo. Original timings/stagger kept.
   Eye (.Eye / .u14537): 2s duration, 1s delay (was fade-only; fade+glide added so both happen together).
   Clock (.Clock / .u12581.movefadeInRightRelative): 1s duration, 0.5s delay. */
.about-images img:first-child { animation: fade-glide-in-right 2s ease 1s both; }
.about-images img:last-child  { animation: fade-glide-in-right 1s ease 0.5s both; }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  background: var(--night); color: var(--night-text);
  list-style: none; margin: 0; padding: 0;
}
.contact-cards li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(28px, 3.5vw, 44px) 20px;
}
.contact-cards li + li { border-left: 1px solid rgba(255,255,255,.1); }
.contact-cards img { width: 56px; height: 56px; border-radius: 10px; margin-bottom: 18px; }
.contact-cards h2 {
  margin: 0 0 10px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em; color: #fff;
}
.contact-cards address, .contact-cards p { margin: 0; font-style: normal; line-height: 1.8; }
.contact-cards a { color: var(--accent-light); text-decoration: none; }
.contact-cards a:hover { color: #fff; text-decoration: underline; }

.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); align-items: start;
}
.contact-layout h2 {
  margin: 0 0 10px; font-weight: 300; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
  letter-spacing: 0.22em; text-transform: uppercase;
}
.contact-layout .rule { margin-bottom: 28px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink); }
.req { color: var(--error); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; background: #fff;
  border: 1px solid #b9b6af; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(138,109,59,.25);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 0.8125rem; color: var(--error); min-height: 0; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  padding: 14px 18px; border-left: 3px solid; margin: 0 0 22px; font-size: 0.9375rem; background: var(--paper-warm);
}
.notice[hidden] { display: none; }
.notice:target { display: block; }  /* no-JS: contact.php redirects to #form-ok / #form-error */
.notice--ok { border-color: var(--ok); color: var(--ok); }
.notice--error { border-color: var(--error); color: var(--error); }
.notice:focus { outline: none; }

.map-frame { position: relative; aspect-ratio: 5 / 6; background: var(--paper-warm); border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #b9b8b4; }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  min-height: 84px; padding-block: 18px;
}
.site-footer p { margin: 0; font-size: 0.8125rem; letter-spacing: 0.04em; }
.to-top {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  color: #fff; border: 1px solid rgba(255,255,255,.35); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.to-top:hover { background: #fff; color: var(--ink); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro figure { max-width: 504px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { grid-template-columns: 246fr 247fr; align-items: start; max-width: 520px; }
  .contact-layout { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  :root { --header-h: 116px; }
  .site-header .wrap { flex-direction: column; justify-content: center; gap: 0; padding-block: 8px; }
  .brand img { width: 168px; height: 56px; }
  .site-nav ul { gap: 18px; }
  .site-nav a { padding: 8px 2px; font-size: 0.75rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .hero-explore { position: static; transform: none; margin-top: 18px; width: 100%; }
  .slide-caption { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .tall { grid-row: auto; }
  .site-footer .wrap { justify-content: center; text-align: center; flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  /* Show logo and About images immediately; do not leave them at opacity 0 during the 0.5–1s delay. */
  .brand,
  .about-images img {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header, .site-footer, .slide-controls, .hero-explore, form { display: none !important; }
}
