/* Ilovik — Modern Minimal theme. Swiss/editorial, warm monochrome, photography as color. */

@font-face { font-family: "Archivo"; src: local("Archivo"); font-display: swap; }

:root {
  --paper: #FAFAF8;
  --paper-2: #F3F1EA;
  --ink: #141414;
  --ink-soft: #4A4844;
  --muted: #85817A;
  --line: #E4E1D8;
  --accent: #3C7A82;
  --accent-ink: #EAF2F1;
  --sand: #C9A876;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "Instrument Serif", "Georgia", serif; font-weight: 400; }

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; background: var(--paper-2); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus { left: var(--gutter); top: 0.5rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ---------- micro labels ---------- */
.label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.label.on-dark { color: #BFE0E0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1rem var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.brand {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: baseline; gap: 0.4rem;
}
.brand small { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.nav-primary { display: flex; align-items: center; gap: 1.75rem; }
.nav-primary > ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav-primary a {
  text-decoration: none; font-size: 0.86rem; letter-spacing: 0.01em;
  color: var(--ink-soft); position: relative; padding: 0.25rem 0;
}
.nav-primary a:hover { color: var(--ink); }
.nav-primary a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent); transition: right 0.22s var(--ease);
}
.nav-primary a:hover::after, .nav-primary a[aria-current="page"]::after { right: 0; }
.nav-primary a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.has-children { position: relative; }
.has-children > button {
  font: inherit; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.3rem;
  color: var(--ink-soft); font-size: 0.86rem; padding: 0.25rem 0;
}
.has-children > button:hover, .has-children[data-open="true"] > button { color: var(--ink); }
.has-children .chev { width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.18s var(--ease); }
.has-children[data-open="true"] .chev { transform: rotate(-135deg) translateY(1px); }

.dropdown {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%);
  background: var(--paper); border: 1px solid var(--line);
  min-width: 220px; display: none; box-shadow: 0 12px 24px -18px rgba(20,20,20,0.18);
}
.has-children[data-open="true"] .dropdown { display: block; }
.dropdown a {
  display: block; padding: 0.55rem 0.75rem; font-size: 0.85rem; text-decoration: none; color: var(--ink-soft);
}
.dropdown a::after { display: none; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--paper-2); color: var(--ink); }
.dropdown a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 1.25rem; }

.langs { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.langs a {
  text-decoration: none; font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 600;
  color: var(--muted); padding: 0.3rem 0.5rem; border: 1px solid transparent;
}
.langs a:hover { border-color: var(--line); color: var(--ink); }
.langs a.on { color: var(--ink); border-color: var(--ink); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 40px; height: 36px; cursor: pointer; padding: 0; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink);
}
.menu-toggle span { top: 50%; transform: translateY(-50%); }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* ---------- mobile nav (accordion) ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-primary {
    display: none; position: fixed; inset: 65px 0 0 0; background: var(--paper);
    overflow-y: auto; padding: 1rem var(--gutter) 3rem; z-index: 90;
  }
  .nav-primary.open { display: block; }
  .nav-primary > ul { flex-direction: column; gap: 0; }
  .nav-primary > ul > li { border-bottom: 1px solid var(--line); }
  .nav-primary a, .has-children > button { display: flex; width: 100%; padding: 0.95rem 0; font-size: 1rem; justify-content: space-between; }
  .dropdown { position: static; transform: none; display: none; border: none; padding: 0 0 0.5rem 1rem; min-width: 0; }
  .has-children[data-open="true"] .dropdown { display: block; }
  .langs { padding-top: 1rem; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 6rem; padding: 3.5rem 0 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.footer-grid h3 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a { text-decoration: none; font-size: 0.9rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid address { font-style: normal; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.78rem; color: var(--muted); }
.footer-bottom .langs a { color: var(--muted); }

/* ---------- hero (split) ---------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding: 3rem 0 4rem;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; min-height: 74vh; }
}
.hero-copy { max-width: 46ch; }
.hero-copy .label { margin-bottom: 1.25rem; }
.hero-copy h1 {
  font-family: "Instrument Serif", serif; font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.hero-copy p { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 2rem; }
.hero-figure { aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--line); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hero-figure:hover img { transform: scale(1.03); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.02em; font-weight: 600;
  padding: 0.85rem 1.5rem; border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background 0.18s var(--ease), transform 0.12s var(--ease);
  cursor: pointer;
}
.btn:hover { background: #333; }
.btn:active { transform: scale(0.98); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- sections ---------- */
section { padding-block: 4rem; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.section-num { font-family: "Instrument Serif", serif; font-size: 1rem; color: var(--accent); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; letter-spacing: -0.01em; font-weight: 600; }
.section-lead { max-width: 62ch; color: var(--ink-soft); font-size: 1.05rem; margin-top: -1rem; margin-bottom: 2.5rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- intro / cards (home) ---------- */
.intro { max-width: 68ch; }
.intro p { font-size: 1.05rem; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); padding: 2rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.75rem; transition: background 0.18s var(--ease);
}
.card:hover { background: var(--paper-2); }
.card .idx { font-family: "Instrument Serif", serif; font-size: 1.6rem; color: var(--accent); }
.card h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.005em; }
.card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.card .go { margin-top: auto; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* ---------- montage strip (home) ---------- */
.montage { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin-top: 1rem; }
.montage img { aspect-ratio: 3/4; object-fit: cover; width: 100%; height: 100%; }
.montage a { display: block; overflow: hidden; }
.montage img { transition: transform 0.5s var(--ease); }
.montage a:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .montage { grid-template-columns: repeat(3, 1fr); } .montage a:nth-child(n+7) { display: none; } }

/* ---------- long-read (about/map/boat/restaurant/timg) ---------- */
.longread { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 960px) { .longread { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.longread .body p { max-width: 62ch; margin: 0 0 1.3rem; color: var(--ink-soft); }
.longread .lead {
  font-family: "Instrument Serif", serif; font-size: 1.5rem; line-height: 1.4;
  color: var(--ink); max-width: 46ch; margin: 0 0 2rem;
}
.side-figure { position: sticky; top: 6rem; border: 1px solid var(--line); }
.side-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.side-figure figcaption { padding: 0.75rem 1rem; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); }

h1.page-title {
  font-family: "Instrument Serif", serif; font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -0.02em; line-height: 1.02; margin: 3rem 0 0.75rem;
}
.page-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 2.5rem; }

ul.feature-list { list-style: none; margin: 1.5rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; max-width: 62ch; }
ul.feature-list li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
ul.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 1px; background: var(--accent); }

.note {
  border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem;
  font-size: 0.92rem; color: var(--muted); max-width: 62ch;
}
blockquote {
  font-family: "Instrument Serif", serif; font-size: 1.7rem; line-height: 1.35;
  border-left: 2px solid var(--accent); margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem;
  max-width: 52ch; color: var(--ink);
}

/* ---------- gallery grid ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid button {
  border: none; padding: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden;
  aspect-ratio: 4/3; display: block; width: 100%;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-grid button:hover img { transform: scale(1.06); }

.count-label { color: var(--muted); font-size: 0.85rem; margin-top: -1.5rem; margin-bottom: 2rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(20, 20, 20, 0.94); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border: 1px solid rgba(255,255,255,0.15); }
.lightbox button.close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.lightbox button.close:hover { background: rgba(255,255,255,0.1); }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; padding: 1rem; opacity: 0.7;
}
.lightbox .lb-nav:hover { opacity: 1; }
.lightbox .lb-prev { left: 0.5rem; } .lightbox .lb-next { right: 0.5rem; }

/* ---------- map page ---------- */
.map-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 760px) { .map-grid { grid-template-columns: 1fr 1fr; } }
.map-grid img { border: 1px solid var(--line); width: 100%; }

/* ---------- video placeholder ---------- */
.video-frame {
  position: relative; border: 1px solid var(--line); aspect-ratio: 16/9; overflow: hidden;
  background: var(--paper-2); margin: 2rem 0; max-width: 900px;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.play-affordance {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(20,20,20,0.35), rgba(20,20,20,0.05));
}
.play-affordance .disc {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(250,250,248,0.92);
  display: flex; align-items: center; justify-content: center; transition: transform 0.2s var(--ease);
}
.video-frame:hover .disc { transform: scale(1.08); }
.play-affordance .disc::after {
  content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink);
  margin-left: 4px;
}
.play-affordance .caption { position: absolute; bottom: 1rem; left: 1rem; color: #fff; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 1rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info address { font-style: normal; font-size: 1rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 2rem; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--accent); }
.contact-info iframe { width: 100%; border: 1px solid var(--line); aspect-ratio: 4/3; }
.contact-info figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }

form.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
form.contact-form label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
form.contact-form input, form.contact-form textarea {
  font: inherit; font-size: 0.98rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
}
form.contact-form input:focus, form.contact-form textarea:focus { border-color: var(--accent); }
form.contact-form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
