/* danielwye.com: hand-written styles. Bump ?v=N in every page's stylesheet link after changing this file. */
:root {
  --ink: #000;
  --paper: #fff;
  --light: #f0eeeb;      /* light sections and footer band */
  --muted: #555;
  --wrap: 1100px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 15px/1.8 var(--body); }
body.light { background: var(--light); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(26px, 3.4vw, 36px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h4 { font-size: clamp(18px, 1.8vw, 22px); }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 6px 10px; z-index: 10; }

/* Header and menu */
header { padding: 26px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font: 500 27px/1.2 var(--head); text-decoration: none; white-space: nowrap; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; }
nav a { text-decoration: none; font-size: 14px; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border: 1.6px solid var(--ink); background: transparent; color: var(--ink);
  font: 500 13.5px/1 var(--body); letter-spacing: .02em; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }

/* Home */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; align-items: center; padding: 30px 0 70px; }
.hero img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 30% 50%; }
.intro { text-align: center; max-width: 900px; margin: 0 auto; padding: 20px 0 40px; }
.intro h4 { font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.7; }
.video { position: relative; width: 100%; min-width: 0; background: #000; margin-bottom: 30px; }
.video iframe, .video button, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #000; }
.video img { object-fit: cover; }
.video button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 40px no-repeat; transition: background-color .15s; }
.video button:hover::after { background-color: rgba(0,0,0,.8); }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin-top: 30px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 40px 0 90px; }
.gallery a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.gallery a:hover img { transform: scale(1.03); }

/* Photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 42px/1 var(--body); cursor: pointer; padding: 14px 20px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Service pages: title, picture, short text, Contact */
.page { text-align: center; padding-top: 10px; padding-bottom: 90px; }
.page h1 { max-width: 560px; margin: 0 auto 30px; font-size: clamp(20px, 2.2vw, 24px); }
.page .pic { margin: 0 auto 40px; border-radius: 12px; overflow: hidden; }
.page .text { max-width: 420px; margin: 0 auto 30px; }
.pics3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.pics3 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }

/* Gear: text over a photo */
.cover { position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 70px 30px; margin-bottom: 0;
  background: url("img/gear.jpg") center / cover no-repeat; }
.cover::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.78); }
.cover > div { position: relative; max-width: 460px; }

/* About */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; padding-top: 20px; padding-bottom: 90px; align-items: stretch; }
.about img { width: 100%; height: 100%; max-height: 1100px; object-fit: cover; }

/* Footer band */
footer { background: var(--light); padding: 60px 0 70px; }
body.light footer { border-top: 1px solid #e2dfda; }
footer .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
footer .name { font: 500 18px/1.4 var(--head); }
footer p { margin: 0; font-size: 14px; line-height: 1.7; }
footer a { text-underline-offset: 3px; }

/* Phone and small tablet */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: none; align-items: center; justify-content: center; }
  nav.open { display: flex; }
  nav ul { flex-direction: column; align-items: center; gap: 14px; }
  nav a { font-size: 20px; }
  .menu-btn { position: relative; z-index: 41; }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero, .about { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero { padding-bottom: 40px; }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .about img { max-height: 420px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  header { padding: 18px 0; }
  .logo { font-size: 22px; }
  .pics3 { grid-template-columns: minmax(0, 1fr); }
  .pics3 img { aspect-ratio: 4 / 3; }
  .cover { min-height: 0; }
}
