:root {
  --green: #17332d;
  --green-2: #20443b;
  --brass: #c9a255;
  --chalk: #f4f2ed;
  --ink: #1b1f1d;
  --muted: #55605b;
  --line: #cfc9bb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--chalk);
}

img, svg { max-width: 100%; }

a { color: inherit; }

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

.wrap {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--chalk);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; }

/* Fejléc */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--chalk);
  border-bottom: 2px dashed var(--brass);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.brand-text span { font-size: 0.85rem; color: #d9d3c2; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; padding: 0.4rem 0; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--brass); }

.nav-toggle {
  display: none;
  background: none;
  color: inherit;
  border: 2px solid var(--brass);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

/* Gombok */
.btn {
  display: inline-block;
  background: var(--brass);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  border: 2px solid var(--brass);
  transition: background-color 0.15s;
}
.btn:hover { background: #dbb96f; }
.btn-small { padding: 0.4rem 1rem; }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--brass); }
.btn-ghost:hover { background: rgba(201, 162, 85, 0.18); }

/* Nyitóképernyő */
.hero {
  background: var(--green);
  color: var(--chalk);
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.lead {
  font-size: 1.2rem;
  max-width: 34rem;
  margin: 1.4rem 0 2rem;
  color: #e5e0d2;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Nyitókép: a keret szaggatott vonala a varrás */
.hero-art { justify-self: end; width: min(100%, 24rem); }
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px dashed var(--brass);
  border-radius: 6px;
  padding: 0.5rem;
  background: var(--green-2);
}

/* Szekciók */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 2rem; }

/* Tapasztalat */
.experience { background: var(--chalk); border-bottom: 2px dashed var(--line); }
.exp-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.exp-num {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(6rem, 16vw, 11rem);
  line-height: 0.9;
  font-weight: 700;
  color: var(--green);
  border: 2px dashed var(--brass);
  border-radius: 6px;
  padding: 0.2em 0.35em 0.1em;
}
.experience h2 { margin-bottom: 0.6rem; }
.exp-sub { margin: 0 0 1.2rem; font-weight: 700; color: var(--green-2); }
.experience blockquote {
  margin: 0;
  padding-left: 1.2rem;
  border-left: 4px solid var(--brass);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  max-width: 36rem;
}
.exp-body { max-width: 46rem; }
.exp-body p { margin: 0 0 1.2rem; }
.exp-body h3 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; }
.ticks { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.ticks li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.8rem;
  border-bottom: 2px dashed var(--line);
}
.ticks li:first-child { border-top: 2px dashed var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--brass);
  border-radius: 50%;
}

.rows { list-style: none; margin: 0; padding: 0; border-top: 2px dashed var(--line); }
.rows li {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2fr;
  gap: 1rem 3rem;
  padding-block: 1.6rem;
  border-bottom: 2px dashed var(--line);
}
.rows h3 { font-size: 1.45rem; }
.rows p { margin: 0; max-width: 40rem; color: var(--muted); }

.gallery { background: #e9e5da; }
.gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
}
.gallery figure { margin: 0 0 1.5rem; break-inside: avoid; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px dashed var(--brass);
  border-radius: 6px;
  padding: 0.4rem;
  background: var(--green);
}
.gallery figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

.materials { background: var(--chalk); }
.materials-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.materials h2 { margin-bottom: 1.2rem; max-width: 18ch; }
.materials p { max-width: 36rem; margin: 0 0 1rem; }

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.swatches span {
  aspect-ratio: 1;
  background: var(--c);
  border-radius: 4px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  outline: 1px solid rgba(0, 0, 0, 0.12);
  outline-offset: -1px;
}

/* Kapcsolat */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-grid h2 { margin-bottom: 1rem; }
.contact-grid p { margin: 0 0 1.5rem; max-width: 32rem; }

.details { margin: 0; }
.details > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 2px dashed var(--line);
}
.details > div:last-child { border-bottom: 2px dashed var(--line); }
.details dt { font-weight: 700; }
.details dd { margin: 0; }
.details a { text-underline-offset: 3px; }
.details a:hover { color: var(--green-2); }

.map iframe {
  display: block;
  width: 100%;
  height: 24rem;
  border: 2px dashed var(--brass);
  border-radius: 6px;
  background: #e9e5da;
}

/* Lábléc */
.site-footer {
  background: var(--green);
  color: #d9d3c2;
  padding-block: 1.6rem;
  font-size: 0.95rem;
}
.site-footer p { margin: 0; }

/* Háttérzene gomb */
.music-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--chalk);
  border: 2px dashed var(--brass);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.music-btn:hover { background: var(--green-2); }
.music-btn .ico-off { display: block; }
.music-btn.on .ico-off { display: none; }
.music-btn.on { background: var(--brass); color: var(--green); border-color: var(--green); }

/* Mobil */
@media (max-width: 52rem) {
  .hero-grid, .materials-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; justify-self: start; width: min(100%, 18rem); }
  .gallery-grid { column-count: 2; column-gap: 1rem; }
  .gallery figure { margin-bottom: 1rem; }
  .exp-head { grid-template-columns: 1fr; }
  .exp-num { justify-self: start; }
  .rows li { grid-template-columns: 1fr; gap: 0.4rem; }
  .map iframe { height: 18rem; }

  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--green);
    border-bottom: 2px dashed var(--brass);
    padding: 0.5rem 1rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; }
  .nav .btn { text-align: center; margin-top: 0.4rem; }
}

@media (max-width: 34rem) {
  .gallery-grid { column-count: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
