/* ==========================================================================
   PhotoSensei legal pages on daronfraley.org — pages 3152, 3154, 3163 only.

   Tokens copied verbatim from /home2/pixiyvmy/photosensei.app/assets/css/site.css
   (the live static site), not re-derived. Dark only; no light mode is defined
   anywhere in this file.

   These are documents, not a marketing page. There is deliberately no ensō
   watermark behind the text — legibility wins.
   ========================================================================== */

@font-face {
  font-family: "InterVariableLegal";
  src: url("fonts/InterVariable-legal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.df-ps-legal {
  --ground:      #191612;
  --surface:     #221E18;
  --text:        #ECE7DE;
  --muted:       #A29C90;
  --hairline:    rgba(236, 231, 222, 0.14);
  --accent:      #C2953F;
  --accent-tint: rgba(194, 149, 63, 0.12);

  --font: "InterVariableLegal", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --wrap: 760px;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
}

/* --- Ground --------------------------------------------------------------- */
.df-ps-legal {
  margin: 0;
  background-color: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* Shoji lattice: thin lines, very low opacity, taller-than-wide panes.
     Pure CSS, no image file. Scrolls with the page — no parallax. */
  background-image:
    repeating-linear-gradient(to right,
      rgba(236, 231, 222, 0.055) 0 1px, transparent 1px 104px),
    repeating-linear-gradient(to bottom,
      rgba(236, 231, 222, 0.038) 0 1px, transparent 1px 156px);
  background-position: center top;
}

.df-ps-legal *,
.df-ps-legal *::before,
.df-ps-legal *::after { box-sizing: border-box; }

.df-ps-legal img { max-width: 100%; height: auto; }

/* --- Skip link ------------------------------------------------------------ */
.df-ps-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent);
  text-decoration: none;
}
.df-ps-skip:focus { left: 1rem; top: 1rem; }

/* --- Focus ---------------------------------------------------------------- */
.df-ps-legal a:focus-visible,
.df-ps-legal button:focus-visible,
.df-ps-legal input:focus-visible,
.df-ps-legal textarea:focus-visible,
.df-ps-legal select:focus-visible,
.df-ps-legal [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Fields also get a lit border, so focus reads even against the outline. */
.df-ps-legal input:focus,
.df-ps-legal textarea:focus {
  border-color: var(--accent) !important;
}

/* --- Layout --------------------------------------------------------------- */
.df-ps-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* --- Header: wordmark only ------------------------------------------------ */
.df-ps-head {
  padding-block: clamp(1.75rem, 5vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
}
.df-ps-brand {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(0.9375rem, 2.4vw, 1.125rem);
}

/* Wordmark as real text. The brand kit's wordmark SVGs hold a live <text>
   element with zero path outlines, so through <img> they render in a
   sandboxed document that cannot reach this page's @font-face. Text is the
   only correct route. PHOTO 300 / SENSEI 700, both tracked 0.20em, with one
   extra tracking step of separation between the words. */
.df-ps-wordmark {
  display: inline-block;
  font-weight: 400;
  letter-spacing: 0.20em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.df-ps-wordmark .wm-photo  { font-weight: 300; color: var(--muted); }
.df-ps-wordmark .wm-sensei { font-weight: 700; color: var(--text); margin-inline-start: 0.20em; }
.df-ps-brand:hover .wm-photo { color: var(--text); }

/* --- Document ------------------------------------------------------------- */
.df-ps-main { padding-block: clamp(3rem, 9vw, 5.5rem) clamp(3rem, 8vw, 5rem); }

/* Hierarchy from size and space. No heading exceeds weight 500. */
.df-ps-title {
  font-size: clamp(2rem, 6vw, 3.125rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(2.5rem, 7vw, 4rem);
  color: var(--text);
}

.df-ps-content h2 {
  font-size: clamp(1.25rem, 3.2vw, 1.625rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  /* Hairline rules between sections, not bordered cards. */
  margin: clamp(3rem, 7vw, 4.25rem) 0 clamp(1rem, 2.5vw, 1.35rem);
  padding-top: clamp(2rem, 5vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}
.df-ps-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.df-ps-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.df-ps-content p { margin: 0 0 1.35rem; }
.df-ps-content strong { font-weight: 600; color: var(--text); }

.df-ps-content ul,
.df-ps-content ol { margin: 0 0 1.5rem; padding-left: 1.35rem; }
.df-ps-content li { margin-bottom: 0.6rem; }
.df-ps-content ul { list-style: none; padding-left: 0; }
.df-ps-content ul > li {
  position: relative;
  padding-left: 1.5rem;
}
/* Brass as a small mark, never a flood. */
.df-ps-content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.df-ps-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.df-ps-content a:hover { color: var(--text); }

.df-ps-content hr {
  border: 0;
  height: 1px;
  background: var(--hairline);
  margin: clamp(2.5rem, 6vw, 3.5rem) 0;
}

/* --- The subscription-cancellation notice --------------------------------
   That block ships a hardcoded light-mode inline style (cream background,
   amber text) inside the post content. The TEXT is store-reviewed and is not
   being edited, so the inline declarations are overridden here instead —
   !important is required precisely because they are inline. Brass stays a
   line, not a flood. */
.df-ps-content .df-status-notice {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 0 !important;
  border-left: 3px solid var(--accent) !important;
  border-radius: 0 !important;
  padding: clamp(1.25rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem) !important;
  margin: clamp(2rem, 5vw, 2.75rem) 0 !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* --- WPForms --------------------------------------------------------------
   Presentation only. No markup, field name, id, nonce, token or validation is
   touched anywhere in this file — WPForms' modern renderer exposes custom
   properties for exactly this purpose. */
.df-ps-legal .wpforms-container {
  --wpforms-field-border-radius: 4px;
  --wpforms-field-border-size: 1px;
  --wpforms-field-background-color: #221E18;
  --wpforms-field-border-color: rgba(236, 231, 222, 0.14);
  --wpforms-field-text-color: #ECE7DE;
  --wpforms-label-color: #ECE7DE;
  --wpforms-label-sublabel-color: #A29C90;
  --wpforms-label-error-color: #E8887B;
  --wpforms-button-border-radius: 4px;
  --wpforms-button-background-color: rgba(194, 149, 63, 0.12);
  --wpforms-button-text-color: #ECE7DE;
  --wpforms-page-break-color: #C2953F;

  margin-top: clamp(2rem, 5vw, 2.75rem);
}

.df-ps-legal .wpforms-field { padding: 0 0 1.75rem; }

.df-ps-legal .wpforms-field-label {
  color: var(--text) !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem !important;
}
.df-ps-legal .wpforms-required-label { color: var(--accent) !important; }

.df-ps-legal .wpforms-field-description {
  color: var(--muted) !important;
  font-size: 0.875rem !important;
  line-height: 1.6;
  margin-top: 0.5rem !important;
}

.df-ps-legal .wpforms-container input[type="text"],
.df-ps-legal .wpforms-container input[type="email"],
.df-ps-legal .wpforms-container textarea {
  background-color: var(--surface) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 4px !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 1rem !important;
  padding: 0.75rem 0.9rem !important;
  width: 100%;
}
.df-ps-legal .wpforms-container input::placeholder,
.df-ps-legal .wpforms-container textarea::placeholder { color: var(--muted); opacity: 1; }

/* Brass OUTLINE over the accent tint. Never a solid brass slab. */
.df-ps-legal .wpforms-container button.wpforms-submit {
  background-color: var(--accent-tint) !important;
  background-image: none !important;
  border: 1px solid var(--accent) !important;
  border-radius: 4px !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  padding: 0.85rem 1.75rem !important;
  transition: background-color 0.25s ease;
}
.df-ps-legal .wpforms-container button.wpforms-submit:hover,
.df-ps-legal .wpforms-container button.wpforms-submit:focus {
  background-color: rgba(194, 149, 63, 0.20) !important;
  color: var(--text) !important;
}

.df-ps-legal .wpforms-error,
.df-ps-legal .wpforms-error-noscript,
.df-ps-legal em.wpforms-error { color: #E8887B !important; }

.df-ps-legal .wpforms-confirmation-container,
.df-ps-legal .wpforms-confirmation-container-full {
  background: var(--surface) !important;
  border: 0 !important;
  border-left: 3px solid var(--accent) !important;
  color: var(--text) !important;
  padding: 1.25rem 1.5rem !important;
}

/* --- Footer --------------------------------------------------------------- */
.df-ps-foot {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 0.9375rem;
}
.df-ps-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.df-ps-foot-links a { color: var(--muted); text-decoration: none; }
.df-ps-foot-links a:hover { color: var(--accent); text-decoration: underline; }
.df-ps-foot-links .sep { color: var(--muted); }
.df-ps-foot-note { color: var(--muted); font-size: 0.8125rem; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .df-ps-legal * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
