/* Caravanserai – based on the original black / grey / rust design */
:root {
  --bg: #000;
  --surface: #0e0e0e;
  --surface-2: #161616;
  --line: #2a2a2a;
  --text: #b4b2b4;
  --muted: #8a888a;
  --heading: #e6e4e6;
  --accent: #e2621f;      /* orange from the claim */
  --accent-dark: #8e2602; /* rust from the original links */
  --radius: 10px;
  --max: 1120px;
  --serif: Georgia, "Times New Roman", Times, serif;
}

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

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

body {
  margin: 0;
  background: var(--bg) url(../images/ornament.png) no-repeat right -80px top 70px;
  background-size: min(420px, 70vw) auto;
  color: var(--text);
  font: 1.0625rem/1.65 var(--serif);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: #fff; text-decoration-color: var(--accent-dark); text-underline-offset: 3px; transition: color .15s; }
a:hover, a:focus-visible { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { color: var(--heading); font-weight: normal; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: .01em; }
h1::first-letter { color: var(--accent); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 1.2em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; color: #000; padding: .5rem 1rem; }

/* Header & navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem max(1rem, calc((100% - var(--max)) / 2));
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: clamp(220px, 38vw, 330px); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { text-decoration: none; color: var(--text); font-size: .95rem; letter-spacing: .04em; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent-dark); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #000; border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; }
  .site-nav a { display: block; padding: .8rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* Layout */
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.page-head { margin-bottom: 2rem; max-width: 46rem; }
.lead { font-size: 1.2rem; color: var(--heading); }

.button {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--accent-dark); color: #fff; border: 1px solid var(--accent-dark);
  font: inherit; font-size: .95rem; letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.button:hover, .button:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.ghost { background: transparent; border-color: #555; color: var(--heading); }
.button.ghost:hover, .button.ghost:focus-visible { border-color: var(--accent); color: var(--accent); background: transparent; }

/* Home */
.hero { padding: clamp(1rem, 6vw, 4rem) 0 3rem; text-align: center; }
.claim {
  color: var(--accent); font-size: clamp(1.4rem, 4.6vw, 2.5rem); line-height: 1.35; margin: 0 auto 2rem;
  letter-spacing: .02em; text-shadow: 0 0 30px rgba(0, 0, 0, .9);
}
.claim .hl { font-size: 1.45em; line-height: 1; }
.claim .sub { display: inline-block; margin-top: .4em; font-size: .75em; color: var(--accent); opacity: .85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.teasers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1rem 0 3rem; }
.teaser { position: relative; display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; aspect-ratio: 4 / 3; background: var(--surface); }
.teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; opacity: .8; }
.teaser:hover img { transform: scale(1.04); opacity: 1; }
.teaser span { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); color: var(--text); font-size: .95rem; }
.teaser strong { display: block; color: #fff; font-weight: normal; font-size: 1.35rem; }

.insta { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.insta img { width: 140px; border-radius: 8px; flex: none; }
@media (max-width: 560px) { .insta { flex-direction: column; text-align: center; } }

/* Products */
.product-grid, .gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .card-caption { padding: .6rem .7rem .8rem; font-size: .85rem; } }
.card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent-dark); transform: translateY(-2px); color: var(--text); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.card-caption { padding: .9rem 1rem 1.1rem; font-size: .95rem; line-height: 1.5; }
.nr { display: block; color: var(--accent); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem; }
.note { margin-top: 2.5rem; color: var(--muted); }

/* Gallery */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: .6rem; }
.gallery-grid a { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 1; background: var(--surface); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; opacity: .9; }
.gallery-grid a:hover img { transform: scale(1.05); opacity: 1; }

/* Prose */
.prose { max-width: 42rem; }
.prose blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 3px solid var(--accent-dark); color: var(--heading); font-size: 1.2rem; font-style: italic; }
.signature { color: var(--accent); font-style: italic; }

/* Locations */
.location { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 1.5rem; margin-bottom: 2.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.location-info p { margin: 0 0 .8rem; }
.map { width: 100%; min-height: 320px; height: 100%; border: 0; border-radius: 8px; }
@media (max-width: 760px) { .location { grid-template-columns: 1fr; } .map { min-height: 260px; } }

/* Links */
.link-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.link-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tagline { color: var(--accent); font-style: italic; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: .95rem; }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1rem 1rem; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: 1.05rem; color: var(--accent); margin-bottom: .6rem; }
.site-footer p { margin: 0 0 .8rem; }
.legal { max-width: var(--max); margin: 0 auto; padding: 1rem 1rem 2rem; color: var(--muted); font-size: .85rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 1rem; text-align: center; }
.lightbox img { max-width: min(92vw, 800px); max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { margin-top: .9rem; color: var(--text); max-width: 40rem; }
.lightbox button { position: fixed; background: rgba(20, 20, 20, .8); color: #fff; border: 1px solid #333; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { color: var(--accent); border-color: var(--accent); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; } }

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