/* hardpackrally.com/photos: write your own line under a replay photo (22 Nov 2026, docs/website.md "/photos").
   Everything happens in the browser; nothing is sent anywhere. Dark only, like the site. */

/* The game writes under a photo in Caveat at its regular weight; the site's own Caveat (/fonts/caveat.woff2) is
   pinned to 600 and cut down to Latin for Vern's lines. This is the whole face at 400, so a line written here
   looks like the game's and can be in any script the face has. */
@font-face {
  font-family: "Caveat Photo"; src: url("/fonts/caveat-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}

.ph-wrap { padding: clamp(36px, 6vw, 84px) var(--pad) clamp(56px, 8vw, 104px); max-width: 1240px; margin: 0 auto; }
.ph-wrap [hidden] { display: none !important; }
.ph-intro { max-width: 760px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.ph-eyebrow {
  margin: 0; color: var(--pine); font-family: var(--cond); font-weight: 700;
  font-size: 15px; letter-spacing: 0.16em;
}
.ph-intro h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: 0;
  color: var(--pine); font-size: clamp(36px, 5vw, 62px); line-height: 1.04;
  margin: 14px 0 22px; text-shadow: 5px 5px 0 var(--rust);
}
.ph-lede { margin: 0; max-width: 52ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }

.ph-drop {
  border: 2px dashed var(--line); background: var(--face); cursor: pointer;
  padding: clamp(36px, 7vw, 76px) 24px; text-align: center;
  transition: border-color .15s, background .15s;
}
.ph-drop:hover, .ph-drop:focus-visible, .ph-drop.over { border-color: var(--pine); background: #223a6b; outline: none; }
.ph-drop-big { margin: 0; font-family: var(--cond); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: 0.02em; color: var(--slate); }
.ph-drop-small { margin: 8px 0 0; color: var(--dim); font-size: 16.5px; }
.ph-drop.small { padding: 16px 24px; }
.ph-drop.small .ph-drop-big { font-size: 18px; }

.ph-problem {
  margin: 16px 0 0; padding: 14px 18px; background: var(--face);
  border: 1px solid var(--line); border-left: 4px solid var(--rust); line-height: 1.55; font-size: 16.5px;
}

.ph-work {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(18px, 3vw, 36px); align-items: start; margin-top: clamp(18px, 2.5vw, 28px);
}
@media (max-width: 860px) { .ph-work { grid-template-columns: minmax(0, 1fr); } }
.ph-stage {
  background: var(--haze); border: 1px solid var(--line);
  padding: clamp(14px, 2.4vw, 30px); display: flex; justify-content: center;
}
#ph-view { display: block; max-width: 100%; max-height: 76vh; width: auto; height: auto; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }

.ph-form { display: flex; flex-direction: column; gap: 16px; }
.ph-field { display: flex; flex-direction: column; gap: 6px; }
.ph-field span { color: var(--dim); font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; }
/* The fields keep the site's own dark face and warm white (style.css sets both for every input, with !important);
   only the hand is this page's, by id, since the site's rule for a field's face outranks a class. */
.ph-field input { font-size: 28px; line-height: 1.2; border: 2px solid var(--line); padding: 8px 14px; width: 100%; min-width: 0; }
#ph-title, #ph-note { font-family: "Caveat Photo", var(--hand); }
.ph-field input:focus-visible { outline: none; border-color: var(--pine) !important; }
.ph-hint { margin: 0; color: var(--dim); font-size: 15.5px; line-height: 1.5; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ph-actions button { font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; cursor: pointer; padding: 12px 18px; border: 0; }
.ph-save { background: var(--pine); color: #14264a; flex: 1 1 100%; font-size: 21px !important; padding: 15px 18px !important; }
.ph-save:hover, .ph-save:focus-visible { background: var(--pine-2); outline: none; }
.ph-plain { background: transparent; color: var(--slate); border: 1px solid var(--line) !important; }
.ph-plain:hover, .ph-plain:focus-visible { border-color: var(--pine) !important; color: var(--pine); outline: none; }

.ph-how { margin-top: clamp(28px, 4vw, 48px); max-width: 760px; background: var(--face); border: 1px solid var(--line); border-top: 3px solid var(--pine); padding: clamp(18px, 2.2vw, 26px); }
.ph-how h2 { margin: 0 0 10px; color: var(--pine); font-family: var(--cond); font-weight: 700; font-size: clamp(19px, 1.9vw, 22px); letter-spacing: 0.02em; }
.ph-how p { margin: 0; line-height: 1.65; font-size: 16.5px; }
