/* ==========================================================================
   zjk.fyi — shared styles
   Desktop is the default. Everything inside the "max-width: 700px" block at the
   bottom is the phone layout.
   ========================================================================== */

@font-face {
  font-family: "Cutive Mono";
  src: url("fonts/cutivemono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sage: #9ab09d;
  --ink: #000;
  --accent: #c48244;   /* highlight for the side you're on */
  --strip: 48px;       /* phone: width of the photo strip that holds the menu square */
  --radius: 2.5rem;
}

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

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

body {
  margin: 0;
  background: #4a5a45; /* shows for a moment while the photo loads */
  color: var(--ink);
  font-family: "Cutive Mono", "American Typewriter", "Courier New", monospace;
  /* Cutive Mono has only one weight; a thin outline gives it more body */
  -webkit-text-stroke: 0.6px currentColor;
  font-size: 1.25rem;
  line-height: 1.55;
}

h1,
h2 {
  -webkit-text-stroke: 0.8px currentColor;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--sage);
}

/* Full-screen photo behind everything */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 0.9rem;
  background: var(--sage);
  border-radius: 999px;
}

.skip:focus {
  top: 0.75rem;
}

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

.pill {
  background: var(--sage);
  border-radius: 999px;
}

/* ==========================================================================
   Home page
   ========================================================================== */

.home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5.5rem 1.25rem 2.5rem;
}

.card {
  display: block;
  width: min(100%, 33rem);
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--sage);
  border-radius: 2.25rem;
  text-align: center;
  text-decoration: none;
}

.card h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.5rem, 5.4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.card p {
  margin: 0 0 0.9rem;
  font-size: clamp(1.05rem, 4.2vw, 1.3rem);
}

.card p:last-child {
  margin-bottom: 0;
}

.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.card:hover h2,
.card:focus-visible h2 {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Desktop: the whole card lifts, brightens and gets a shadow */
@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .card:focus-visible {
    background: #a9bfac;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-6px);
  }
}

/* "Enter" button graphic: shown on touch screens and phones, where there is no hover.
   It is decoration only; the whole card is the link. */
.enter {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 0.55rem 1.4rem;
  background: var(--accent);
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.enter svg {
  width: 1.1em;
  height: 1.1em;
}

@media (hover: none), (max-width: 700px) {
  .enter {
    display: inline-flex;
  }

  .card:active {
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover,
  .card:focus-visible {
    transform: none;
  }
}

.contact {
  margin-top: 1.25rem;
  padding: 0.6rem 1.4rem;
  text-align: center;
  font-size: clamp(1rem, 3.9vw, 1.25rem);
}

/* Instagram + LinkedIn, top right of the home page */
.social {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 0.9rem;
}

.social a:hover {
  opacity: 0.6;
}

.social svg,
.social img {
  display: block;
  height: 2.75rem;
}

.social svg {
  width: 2.75rem;
}

.social img {
  width: auto;
}

/* ==========================================================================
   Inner pages — desktop
   ========================================================================== */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* Professional | Amateur */
.side-switch {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem;
  font-size: 1.05rem;
}

.side-switch a {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
}

.side-switch a:hover {
  text-decoration: underline;
}

.side-switch a[aria-current="true"] {
  background: var(--accent);
}

.side-switch .sep {
  padding: 0 0.05rem;
}

/* Only the list for the side being viewed is shown (menu.js switches it on phones) */
.menu[data-view="pro"] .pages[data-side="am"],
.menu[data-view="am"] .pages[data-side="pro"] {
  display: none;
}

/* Home | Now | Photos ... */
.pages {
  border-radius: 1.6rem;
}

.pages ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0.65rem 1.4rem;
  list-style: none;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
}

.pages li + li::before {
  content: "|";
  content: "|" / "";
}

.pages a {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  text-decoration: none;
}

.pages a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.pages a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.sheet {
  flex: 1;
  width: 100%;
  max-width: 74rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  flex: 1;
  padding: 2.25rem clamp(1.5rem, 4vw, 3.5rem) 3rem;
  background: var(--sage);
  border-radius: var(--radius);
}

.panel h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
}

.panel p {
  max-width: 62ch;
  margin: 0 0 1rem;
}

/* "Visit my amateur site..." — professional pages only */
.cross-wrap {
  display: flex;
  justify-content: center;
}

.cross {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  text-align: center;
  text-decoration: none;
}

.cross:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cross svg {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

/* The phone menu button only exists on phones */
.menu-btn {
  display: none;
}

/* ==========================================================================
   Phones
   The sage panel runs from the left edge to a narrow photo strip on the right.
   The menu square lives in that strip, so it never covers any content.
   ========================================================================== */

@media (max-width: 700px) {
  .page {
    display: block;
    padding: 0;
  }

  .top {
    display: block;
  }

  .sheet {
    min-height: 100vh;
    min-height: 100dvh;
    width: auto;
    max-width: none;
    margin-right: var(--strip);
    gap: 0;
    background: var(--sage);
  }

  .panel {
    padding: 1.5rem 1.1rem 2rem;
    background: none;
    border-radius: 0;
  }

  .panel h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .cross-wrap {
    display: block;
    padding: 0 1.1rem 1.75rem;
  }

  .cross {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0;
    background: none;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0;
  }

  /* --- menu square (top right, fixed) --- */
  .js .menu-btn {
    position: fixed;
    top: 0.5rem;
    right: 4px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ink);
    background: var(--sage);
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    cursor: pointer;
  }

  .menu-btn svg {
    width: 24px;
    height: 24px;
  }

  .menu-btn .icon-close {
    display: none;
  }

  .menu-btn[aria-expanded="true"] .icon-open {
    display: none;
  }

  .menu-btn[aria-expanded="true"] .icon-close {
    display: block;
  }

  /* --- the menu itself --- */
  .menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: var(--strip);
    z-index: 30;
    display: none;
    gap: 2.4rem;
    padding: 1.5rem 1rem 2rem;
    overflow-y: auto;
    background: var(--sage);
  }

  .js.menu-open .menu {
    display: flex;
  }

  .js.menu-open {
    overflow: hidden;
  }

  /* No JavaScript: show the menu as a plain block at the top of the page */
  html:not(.js) .menu {
    position: static;
    display: flex;
    margin-right: var(--strip);
    padding: 1rem;
  }

  .menu .side-switch {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.45);
  }

  .menu .pages {
    width: 100%;
    background: none;
    border-radius: 0;
  }

  .menu .pages ul {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0;
    font-size: 1.35rem;
  }

  .menu .pages li + li::before {
    content: none;
  }

  .menu .pages a {
    display: block;
    padding: 0.85rem 0.5rem;
    text-align: center;
  }
}
