@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:    #f7f3ee;
  --stone:    #e8e0d5;
  --clay:     #a8795a;
  --earth:    #6b4228;
  --charcoal: #1c1714;
  --mid:      #7a6a5e;
  --white:    #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
}

/* ─── Grain overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─── Header ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.header-top {
  background: var(--cream);
  padding: 0.85rem max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--stone);
}

.site-logo,
.site-logo a {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.site-logo:hover,
.site-logo a:hover { color: #222; }

nav {
  background: #777;
  display: flex;
  gap: 2rem;
  padding: 0.5rem max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  align-items: center;
}

nav a {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
  color: #ffffff;
}

nav a.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ─── Main wrapper ─── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ─── Page heading ─── */
.page-heading {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.page-sub {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ─── Gallery quote ─── */
.gallery-quote {
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--mid);
  border-left: 2px solid var(--clay);
  padding-left: 1.25rem;
}

/* ─── Gallery grid ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--stone);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: rgba(28,23,20,0.55);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--stone);
  letter-spacing: 0.03em;
}

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,16,14,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.25s ease;
}

.lightbox.open { display: flex; }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img-wrap {
  position: relative;
  cursor: default;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(232,224,213,0.6);
  letter-spacing: 0.04em;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: rgba(232,224,213,0.5);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  font-weight: 300;
}
.lightbox-close:hover { color: var(--stone); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(232,224,213,0.4);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s;
  font-weight: 200;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--stone); }

/* ─── About page ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
  margin-top: 1rem;
}

.about-photo {
  position: sticky;
  top: 6rem;
}

.about-photo img {
  width: 100%;
  display: block;
  filter: sepia(0.08) saturate(0.9);
}

.about-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 400;
}

.about-text h2 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.about-text p {
  color: #4a3f38;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.about-text p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  line-height: 0.8;
  float: left;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--clay);
  font-weight: 300;
}

/* ─── Workshop history ─── */
.workshop-history {
  position: relative;
}

.hane-deco {
  float: right;
  margin: 0 0 1rem 1.5rem;
  width: 110px;
  opacity: 0.9;
}

.workshop-history h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.workshop-history ul {
  list-style: none;
  border-left: 1px solid var(--stone);
  padding-left: 1.25rem;
}

.workshop-history li {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.workshop-history li span {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--clay);
  margin-right: 0.75rem;
  font-size: 0.95rem;
}

/* ─── Contact page ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 1rem;
}

.contact-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--stone);
  padding-bottom: 0.75rem;
}

.contact-block p {
  color: #4a3f38;
  margin-bottom: 0.5rem;
}

.contact-block a {
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-block a:hover {
  border-bottom-color: var(--clay);
}

.pay-photo {
  margin: 1.5rem 0 0;
  max-width: 260px;
}
.pay-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.1) saturate(0.85);
  box-shadow: 0 6px 18px rgba(60, 40, 30, 0.12);
}

.contact-image img {
  width: 100%;
  max-width: 320px;
  filter: sepia(0.1) saturate(0.85);
}

.lillehane {
  display: block;
  width: auto !important;
  max-width: 80px !important;
  margin-top: 2rem;
  filter: none !important;
  opacity: 0.85;
}

/* ─── News / Aktuelt ─── */
.news-list {
  display: flex;
  flex-direction: column;
  max-width: 630px;
}

.news-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--stone);
}

.news-item:first-child { padding-top: 0; }
.news-item:last-child  { border-bottom: none; }

.news-item h2 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-images {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.news-images img {
  flex: 0 0 auto;
  max-height: 150px;
  max-width: 100%;
  height: auto;
  cursor: pointer;
  filter: sepia(0.06) saturate(0.9);
  transition: opacity 0.15s;
}
.news-images img:only-child {
  max-height: 420px;
  max-width: 80%;
}
/* Exactly 2 images: each takes up to half the row */
.news-images img:first-child:nth-last-child(2),
.news-images img:first-child:nth-last-child(2) ~ img {
  max-width: calc(50% - 0.25rem);
  max-height: 320px;
}
.news-images img:hover { opacity: 0.8; }

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,15,12,0.92);
  z-index: 9999;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
  filter: none;
}

.news-date {
  font-size: 0.75rem;
  color: #a89890;
  letter-spacing: 0.05em;
  margin-top: -0.6rem;
  margin-bottom: 0.85rem;
}

.news-body {
  color: #4a3f38;
  font-size: 0.975rem;
  line-height: 1.85;
}

/* ─── Divider ─── */
.divider {
  width: 3rem;
  height: 1px;
  background: var(--clay);
  margin: 2rem 0;
  opacity: 0.6;
}

/* ─── Footer ─── */
footer {
  background: var(--charcoal);
  color: rgba(232,224,213,0.35);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer a {
  color: rgba(232,224,213,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--stone); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  header { position: relative; }
  .header-top { padding: 0.6rem 1.25rem; }
  nav { padding: 0.4rem 1.25rem; gap: 1.5rem; }
  main { padding: 2rem 1.25rem 4rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
  nav { flex-wrap: wrap; gap: 1rem; padding: 0.4rem 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-heading { font-size: 1.25rem; }
  .news-images img { max-height: 140px; }
  .news-images img:only-child { max-height: 280px; max-width: 100%; }
}
