/* Roaming Hippie: colours and fonts come from the branding guidelines (October 2026). */
:root {
  --parchment: #F4EBDD;
  --parchment-deep: #EADDC8;
  --ink: #344D63;
  --ink-soft: #4A6276;
  --sage: #7C8976;
  --terracotta: #B87559;
  --ochre: #C59A48;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--ink); color: var(--parchment); padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

/* Header: the small globe + live text on inner pages, the full logo on the home page. */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: var(--serif); font-size: 1.45rem; }
.site-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: 1.05rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--terracotta); }

.home-header { padding: 16px 0 0; }
.home-header .wrap { justify-content: flex-end; }

/* Small floral divider: three dots in the accent colours. */
.flourish { display: flex; justify-content: center; gap: 10px; margin: 28px 0; }
.flourish i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.flourish i:nth-child(2) { background: var(--terracotta); }
.flourish i:nth-child(3) { background: var(--ochre); }

/* Home */
.intro { text-align: center; padding: 8px 0 32px; }
.intro .logo { width: min(300px, 70vw); margin: 0 auto 24px; }
.intro h1 { margin-bottom: .3em; }
.intro .lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.6em; }

.button {
  display: inline-block; background: var(--ink); color: var(--parchment);
  padding: 12px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1rem;
}
.button:hover { background: #26394A; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.hero { margin: 0 auto; }
.hero img { width: 100%; border-radius: 4px; }
.hero figcaption, .photo-note { font-size: 1rem; color: var(--ink-soft); margin-top: 10px; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }

/* Collection cards */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.card { text-decoration: none; display: block; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; transition: transform .3s ease; }
.card .frame { overflow: hidden; border-radius: 4px; background: var(--parchment-deep); }
.card:hover img { transform: scale(1.03); }
.card h3 { margin: 12px 0 2px; }
.card p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

/* A collection's photos: a simple masonry of columns that keeps each photo's own shape. */
.page-title { padding: 24px 0 8px; }
.page-title p { font-size: 1.1rem; color: var(--ink-soft); max-width: 680px; }
.breadcrumb { font-size: 1rem; margin-bottom: 12px; }

.gallery { columns: 3 300px; column-gap: 16px; padding-bottom: 24px; }
.gallery figure { margin: 0 0 20px; break-inside: avoid; }
.gallery a { display: block; border-radius: 4px; overflow: hidden; background: var(--parchment-deep); }
.gallery img { width: 100%; transition: opacity .2s ease; }
.gallery a:hover img { opacity: .9; }
.gallery figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }

/* Places and themes on the Photographs page */
.group { padding-top: 28px; }
.group h2 { margin-bottom: 18px; }

/* Home: a row of favorite photos and a list of themes */
.fav-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fav-strip a { display: block; border-radius: 4px; overflow: hidden; background: var(--parchment-deep); }
.fav-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.fav-strip a:hover img { transform: scale(1.03); }
@media (min-width: 800px) { .fav-strip { grid-template-columns: repeat(6, 1fr); } }
.small-head { font-size: 1.4rem; }
.theme-links { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.theme-links a { display: inline-block; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.theme-links a:hover { background: var(--ink); color: var(--parchment); }

.collection-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 8px; border-top: 1px solid var(--parchment-deep); }

/* Photo viewer (the large view when you tap a photo) */
.viewer {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(24, 34, 44, .96); color: var(--parchment);
}
.viewer::backdrop { background: rgba(24, 34, 44, .96); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.viewer button {
  position: absolute; background: rgba(244, 235, 221, .14); color: var(--parchment); border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer;
}
.viewer button:hover { background: rgba(244, 235, 221, .28); }
.viewer .close { top: 14px; right: 14px; }
.viewer .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.viewer .next { right: 14px; top: 50%; transform: translateY(-50%); }
.viewer .count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: .95rem; }
@media (min-width: 601px) {
  .viewer img { max-width: calc(100vw - 150px); }
}
@media (max-width: 600px) {
  .viewer .prev, .viewer .next { top: auto; bottom: 8px; transform: none; }
}

/* About */
.about-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; padding-bottom: 32px; }
.about-grid figure { margin: 0; }
.about-grid img { border-radius: 4px; }
@media (min-width: 800px) { .about-grid { grid-template-columns: 3fr 2fr; gap: 48px; } }
.about-grid figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: 8px; }

/* Facebook / Instagram buttons (same icons as Roaming History) */
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.page-title.center .social { justify-content: center; }
.social a {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.social a:hover { background: var(--ink); color: var(--parchment); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social.small { gap: 18px; }
.social.small a { box-shadow: none; padding: 4px 0; font-weight: 400; }
.social.small a:hover { background: none; color: var(--ink); text-decoration: underline; }

/* Coming soon cards: the globe on a soft panel */
.card.soon .frame { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.card.soon img { width: 42%; aspect-ratio: auto; object-fit: contain; }
.card.soon p { color: #8C4F37; font-weight: 700; }

/* Footer */
.site-footer { margin-top: 48px; padding: 36px 0 44px; border-top: 1px solid var(--parchment-deep); font-size: 1rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer p { margin: 0; }
.site-footer .sister { display: flex; align-items: center; gap: 10px; }

.center { text-align: center; }

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