/* penisoperation.com — house stylesheet.
   Every page links this. Semantic HTML looks correct with no classes at all;
   the component classes below are the only ones anyone may use.
   Tokens are taken from the site's existing identity — do not invent new values. */

:root {
  /* brand */
  --navy:       #113e78;
  --blue:       #1a5fad;
  --blue-pale:  #c4d9f5;
  --blue-tint:  #dce3ee;
  --slate:      #1f2d40;
  --slate-soft: #5a6a82;
  --gold:       #c9a84c;
  --gold-pale:  #e8d5a0;
  --white:      #ffffff;
  --danger:     #d9534f;

  /* roles */
  --bg:         var(--white);
  --bg-alt:     #f5f8fc;
  --text:       var(--slate);
  --text-soft:  var(--slate-soft);
  --rule:       var(--blue-tint);
  --link:       var(--blue);
  --accent:     var(--navy);

  /* type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: .875rem;
  --step-0:  1.0625rem;
  --step-1:  1.375rem;
  --step-2:  1.75rem;
  --step-3:  2.25rem;
  --step-4:  clamp(2.4rem, 5vw, 3.4rem);

  /* spacing — use these, never arbitrary px */
  --s-1: .5rem;  --s-2: .875rem; --s-3: 1.25rem;
  --s-4: 2rem;   --s-5: 3rem;    --s-6: 4.5rem;

  --measure: 68ch;      /* max reading width */
  --page:    72rem;     /* max page width   */
  --radius:  .4rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- base elements: plain semantic HTML must look right on its own ---- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2;
             color: var(--accent); text-wrap: balance; margin: 0 0 var(--s-2); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-top: var(--s-5); }
h3 { font-size: var(--step-1); margin-top: var(--s-4); }

p, ul, ol, table, figure, blockquote { margin: 0 0 var(--s-3); }
p, li { max-width: var(--measure); }
li { margin-bottom: var(--s-1); }

a { color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

strong { color: var(--navy); }
small { font-size: var(--step--1); color: var(--text-soft); }

table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
th, td { text-align: left; padding: var(--s-2); border-bottom: 1px solid var(--rule); }
th { color: var(--navy); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
figure { margin-inline: 0; }
figcaption { font-size: var(--step--1); color: var(--text-soft); margin-top: var(--s-1); }

blockquote { border-left: 3px solid var(--gold); padding-left: var(--s-3);
             color: var(--text-soft); font-style: normal; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-5) 0; }

/* ---- layout ---- */

.page    { max-width: var(--page); margin-inline: auto; padding: 0 var(--s-3); }
.section { padding: var(--s-5) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--tint { background: var(--bg-alt); }
.prose > * + * { margin-top: var(--s-3); }
.grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

/* ---- components (the only approved set) ---- */

.hero { padding: var(--s-6) 0 var(--s-5); }
.hero p.lead { font-size: var(--step-1); color: var(--text-soft); max-width: 46ch; }

.btn { display: inline-block; background: var(--navy); color: var(--white);
       font-weight: 600; text-decoration: none; padding: var(--s-2) var(--s-4);
       border-radius: var(--radius); border: 0; cursor: pointer; font-size: var(--step-0); }
.btn:hover { background: var(--blue); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--blue-tint); color: var(--navy); }

.card { background: var(--white); border: 1px solid var(--rule);
        border-radius: var(--radius); padding: var(--s-3); }
.card h3 { margin-top: 0; }

.facts { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.facts li { display: grid; grid-template-columns: 12rem 1fr; gap: var(--s-2);
            padding-bottom: var(--s-2); border-bottom: 1px solid var(--rule); max-width: none; }
.facts b { color: var(--navy); font-weight: 600; }

details { border-bottom: 1px solid var(--rule); padding: var(--s-2) 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy);
                  font-size: var(--step-0); list-style-position: outside; }
details[open] summary { margin-bottom: var(--s-2); }

.note { background: var(--blue-tint); border-left: 3px solid var(--navy);
        padding: var(--s-3); border-radius: var(--radius); }
.note--care { background: #fdf6e6; border-left-color: var(--gold); }

form { display: grid; gap: var(--s-3); max-width: 34rem; }
label { font-weight: 600; color: var(--navy); display: block; margin-bottom: var(--s-1); }
input, select, textarea { width: 100%; font: inherit; color: var(--text);
                          padding: var(--s-2); border: 1px solid var(--slate-soft);
                          border-radius: var(--radius); background: var(--white); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.consent { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--step--1); }
.consent input { width: auto; margin-top: .3em; }

.cta { background: var(--navy); color: var(--white); border-radius: var(--radius);
       padding: var(--s-4); text-align: center; }
.cta h2, .cta h3 { color: var(--white); margin-top: 0; }
.cta p { color: var(--blue-pale); margin-inline: auto; }
.cta .btn { background: var(--gold); color: var(--slate); }
.cta .btn:hover { background: var(--gold-pale); color: var(--slate); }

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