:root {
  --green: #7ebc44;
  --black: #0b0b0b;
  --white: #ffffff;
  --muted-on-dark: #b8b8b8;
  --text-on-dark: #e8e8e8;
  --muted-on-light: #555555;
  --photo-green: #6bbd2b;
  --line: rgba(255, 255, 255, 0.14);
  --gutter: 24px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

/* Keep the page still behind the contact pop-up. */
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.5;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Shared bits */

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 32px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--green {
  background: var(--green);
  color: var(--black);
}

.btn--green:hover { background: var(--white); }

.btn--green:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* Hero: photo on top for mobile, split screen from 900px */

.hero {
  display: grid;
  grid-template-areas:
    "bar"
    "photo"
    "copy";
  grid-template-rows: auto auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
}

.brand {
  grid-area: bar;
  padding: 14px var(--gutter);
}

.brand__logo {
  height: clamp(32px, 9.5vw, 56px);
  width: auto;
}

.hero__photo {
  grid-area: photo;
  height: clamp(230px, 38svh, 400px);
  background: var(--photo-green);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
}

.hero__copy {
  grid-area: copy;
  align-self: center;
  min-width: 0;
  padding: 36px var(--gutter) 56px;
  max-width: 44rem;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 4vw + 1rem, 4.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.accent { color: var(--green); }

.tagline {
  margin: 0 0 32px;
  font-size: clamp(1.25rem, 0.8vw + 1.05rem, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted-on-dark);
}

.noscript {
  margin: 16px 0 0;
  color: var(--muted-on-dark);
}

/* Short phones: trim the photo so the Contact button stays on the first screen. */
@media (max-width: 599px) and (max-height: 700px) {
  .hero__photo { height: clamp(200px, 34svh, 400px); }
}

/* Small tablets: a wider photo needs more height to keep the cap in frame. */
@media (min-width: 600px) {
  .hero__photo { height: min(72vw, 55svh); }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "bar photo"
      "copy photo";
    grid-template-rows: auto 1fr;
  }

  .brand { padding: 24px clamp(32px, 6vw, 96px); }

  .brand__logo { height: clamp(40px, 4vw, 64px); }

  .hero__photo { height: auto; }

  .hero__photo img { object-position: 50% 20%; }

  .hero__copy {
    padding: 24px clamp(32px, 6vw, 96px) 72px;
    justify-self: start;
    width: 100%;
  }
}

/* About */

.bio {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--line);
}

.bio__inner {
  display: grid;
  gap: 24px;
  max-width: 1680px;
  margin: 0 auto;
}

.bio .eyebrow { margin-bottom: 12px; }

.bio h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.bio__text {
  margin: 0;
  max-width: 46rem;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.375rem);
  line-height: 1.6;
  color: var(--text-on-dark);
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .bio { padding-inline: 120px; }

  .bio__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
    align-items: start;
  }
}

/* Instagram feed */

.feed {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.feed__inner {
  max-width: 1680px;
  margin: 0 auto;
}

/* Leave 120px on the left and right of the screenshot on desktop and large tablets. */
@media (min-width: 900px) {
  .feed { padding-inline: 120px; }
}

.feed__head { margin-bottom: 40px; }

.feed .eyebrow { margin-bottom: 12px; }

.feed h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.feed__handle {
  margin: 0;
  color: var(--muted-on-dark);
}

.feed__handle a {
  font-weight: 600;
  color: var(--white);
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.feed__handle a:hover { color: var(--green); }

.feed__handle a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* The whole screenshot is one link to the profile; the bottom fades out into the page. */
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111;
  text-decoration: none;
}

.shot img {
  width: 100%;
  height: auto;
}

.shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0), var(--black) 88%);
  pointer-events: none;
}

.shot__cta {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(20px, 4vw, 36px);
  width: fit-content;
  margin-inline: auto;
}

.shot:hover .shot__cta {
  background: var(--white);
  transform: translateY(-2px);
}

/* Phones: a slimmer button so it does not cover the last visible row. */
@media (max-width: 599px) {
  .shot__cta {
    min-height: 46px;
    padding: 0 20px;
    font-size: 0.8125rem;
  }
}

.shot:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--muted-on-dark);
  font-size: 0.875rem;
}

.footer p { margin: 0; }

.footer__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 4px;
  cursor: pointer;
}

.footer__link:hover { color: var(--green); }

.footer__link:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* Contact pop-up */

.modal {
  width: min(92vw, 460px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal[open] { animation: pop 0.22s ease-out; }

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal[open]::backdrop { animation: fade 0.22s ease-out; }

.modal__panel {
  position: relative;
  padding: 40px 20px 24px;
}

@media (min-width: 480px) {
  .modal__panel { padding: 40px 28px 32px; }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.modal__close:hover { background: #ececec; }

.modal h2 {
  margin: 0 0 20px;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.modal__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f3f3f1;
}

.modal__mail {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  transition: transform 0.2s ease;
}

.modal__mail:hover { transform: rotate(-8deg) scale(1.06); }

.modal__email {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.875rem, 4vw, 1.125rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  user-select: all;
}

.modal__copy {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal__copy:hover { background: #2a2a2a; }

/* Phones: tighter row so the address always stays on one line. */
@media (max-width: 399px) {
  .modal__row { gap: 10px; padding: 10px; }
  .modal__mail { width: 44px; height: 44px; }
}

@media (max-width: 340px) {
  .modal__row { gap: 8px; padding: 8px; }
  .modal__mail { width: 40px; height: 40px; }
  .modal__email { font-size: 0.8125rem; }
}

@media (max-width: 319px) {
  .modal__email { font-size: 0.75rem; }
}

.modal__copy .icon-check { display: none; }

.modal__copy.is-copied {
  background: var(--green);
  color: var(--black);
}

.modal__copy.is-copied .icon-copy { display: none; }
.modal__copy.is-copied .icon-check { display: block; }

.modal__close:focus-visible,
.modal__mail:focus-visible,
.modal__copy:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
}

@keyframes fade {
  from { opacity: 0; }
}

/* Entrance motion */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

.hero__copy > * { animation: rise 0.7s ease both; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4) { animation-delay: 0.24s; }

/* Reduced motion: no animation anywhere. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after,
  .modal::backdrop {
    animation: none !important;
    transition: none !important;
  }
}
