/* Basic look borrowed from chronometrie.ch: Vidaloka headings, Open Sans text,
   dark grey text on white, warm brown accent. Fonts are self-hosted (SIL OFL). */

@font-face {
  font-family: "Vidaloka";
  src: url("fonts/vidaloka-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #fff;
  --fg: #373737;
  --accent: #957156;     /* brown/gold used for links and accents */
  --cream: #f5efe6;      /* light background tone */
  --line: #e1e1e1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 "Open Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.page-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}
.page-header h1 {
  font-family: "Vidaloka", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0;
}
.page-header .subtitle {
  margin: 0 0 .6rem;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-header .intro {
  max-width: 40em;
  margin: 1.5rem auto 0;
}
.page-header h1::after {         /* short accent rule under the title */
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 1rem auto 0;
  background: var(--accent);
}

.grid {
  display: grid;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.grid a:hover img, .grid a:focus-visible img { transform: scale(1.04); }
.grid a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* No long-press "save image" menu on iOS, no selection/dragging */
.grid img, .pswp img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
