@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  color-scheme: light;
  --paper: #fcfaf4;
  --ink: #1b2620;
  --forest: #153a30;
  --rust: #9f471f;
  --line: #ded8c8;
  --serif: "Playfair Display", Georgia, serif;
  font-family: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
img { display: block; width: 100%; object-fit: cover; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #bd672b; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-160%); z-index: 3; background: white; padding: 8px; }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.brand { color: var(--forest); font: 700 1.34rem var(--serif); text-decoration: none; }
nav, .languages { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav a { font-size: .94rem; font-weight: 600; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.languages { gap: 4px; }
.languages button { display: inline-flex; gap: 5px; align-items: center; border: 1px solid transparent; background: transparent; padding: 4px 8px; color: var(--ink); cursor: pointer; border-radius: 20px; font-size: .875rem; }
.languages button[aria-pressed=true] { border-color: #93a295; background: #e8eee6; }
.flag { display: inline-block; width: 16px; height: 11px; }
.flag.hu { background: linear-gradient(#ba3346 33%, #fff 33% 66%, #4f7655 66%); box-shadow: 0 0 0 1px #0001; }
.flag.en { overflow: hidden; font-size: 15px; line-height: 11px; background: linear-gradient(90deg, transparent 38%, #c62436 38% 62%, transparent 62%), linear-gradient(transparent 35%, #c62436 35% 65%, transparent 65%), #233d73; }
.hero { background: #f3eddf; padding-block: clamp(42px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: clamp(28px, 6vw, 84px); }
.hero-intro { border-left: 1px solid #c3997a; padding-left: clamp(20px, 3vw, 36px); }
.eyebrow { color: var(--rust); font-size: .875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 13px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.13; }
h1 { font-size: clamp(2.7rem, 5.1vw, 5.3rem); color: var(--forest); letter-spacing: -.055em; }
h1 em { display: block; font-weight: 600; color: #88502d; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.lead { font-size: 1.1rem; max-width: 46ch; }
.welcome { margin-top: 15px; max-width: 46ch; }
.button { display: inline-block; margin-top: 26px; padding: 13px 20px; border-radius: 4px; background: var(--forest); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #285748; }
.section { padding-block: clamp(50px, 7vw, 96px); }
.cards, .steps { display: grid; gap: 20px; margin-top: 32px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards article { padding: 22px 18px 22px 0; border-top: 2px solid #b75e37; }
.cards p, .skills p, .about p:not(.eyebrow), .steps p, .contact p { margin-top: 13px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 68px); margin-top: 34px; padding: clamp(22px, 4vw, 48px); background: #f1ecdf; border-radius: 8px; }
.skills img { height: auto; border-radius: 6px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.skill-list li { border-radius: 25px; padding: 4px 12px; background: #e8cd90; font-size: .875rem; font-weight: 700; }
.skill-list li:nth-child(2) { background: #edbeac; }
.skill-list li:nth-child(3) { background: #c3d9e3; }
.skill-list li:nth-child(4) { background: #c4d9bc; }
.contact { color: #fffaf0; background: var(--forest); }
.solar-tile { display: grid; place-items: center; overflow: hidden; background: linear-gradient(#badbe1 73%, #80996b 73%); }
.house { width: min(240px, 100%); margin: auto; height: 130px; position: relative; }
.sun { position: absolute; width: 32px; height: 32px; top: 3px; right: 12px; border-radius: 50%; background: #edb839; box-shadow: 0 0 0 5px #edb83948; }
.roof { position: absolute; top: 8px; left: 12%; width: 76%; height: 68px; background: #ad563f; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.panels { position: absolute; left: 30%; top: 27px; width: 46%; height: 34px; transform: skewX(30deg); border: 2px solid #dfefed; background: repeating-linear-gradient(90deg, transparent 0 12px, #afd1e4 13px 14px), repeating-linear-gradient(0deg, #224464 0 9px, #afd1e4 10px 11px); }
.wall { position: absolute; top: 76px; left: 20%; width: 60%; height: 48px; background: #fff7dd; border-bottom: 3px solid #8a7256; }
.about { position: relative; isolation: isolate; overflow: hidden; background: #eee8da; }
.about-mosaic { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; opacity: .29; }
.about-mosaic img { width: 100%; height: 100%; min-height: 0; }
.about-grid { display: grid; align-items: center; grid-template-columns: minmax(190px, 330px) 1fr; gap: clamp(24px, 5vw, 64px); }
.portrait { aspect-ratio: 1; border-radius: 8px; }
.about-copy { padding: clamp(20px, 4vw, 44px); border-radius: 8px; background: rgb(252 250 244 / 94%); }
.first { background: #f3eddf; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 1.6rem; }
.steps li { border-top: 1px solid #c3997a; padding-top: 18px; margin-right: 10px; }
.steps li::marker { color: var(--rust); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 36px; }
.contact .button { background: #fff0d4; color: #18362d; }
.contact .button:hover { background: #ecd6ad; }
.email { display: inline-block; margin: 14px 0 0 12px; }
.contact dl { background: #244b3e; padding: 23px; border-radius: 6px; }
.contact dt { color: #ffe1b4; font-weight: 600; }
.contact dd { margin: 0; font-size: 1.35rem; }
.contact dd + dt { margin-top: 14px; }
.contact small { font-size: .875rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px; font-size: .875rem; }
@media (max-width: 820px) {
  .navigation { flex-wrap: wrap; }
  nav { order: 2; width: 100%; gap: 8px 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .hero-grid, .skills, .about-grid, .contact-grid, .cards { grid-template-columns: 1fr; }
  .hero-intro { border-left: 0; padding-left: 0; }
  .about-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .portrait { max-width: 280px; }
  .email { display: block; margin-inline: 0; }
}
@media (max-width: 365px) {
  .steps { grid-template-columns: 1fr; }
}
