/* Pause your subscription (/pause). Builds on style.css: same tokens, type roles and buttons.
   House rules: never a box inside a card (a second thing to say is a second card), success text in ink. */

.pause-page .site-header { position: relative; }
.pause-main { padding: clamp(1rem, 4vw, 3rem) 0 var(--section-y); }
.pause-wrap { width: min(34rem, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; gap: var(--gap); }

/* Header: the way back to the website */
.pause-back-site { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.pause-back-site span[aria-hidden] { transition: translate .4s var(--spring); }
@media (hover: hover) { .pause-back-site:hover span[aria-hidden] { translate: -6px 0; } }
@media (hover: hover) { .pause-back-site:hover .btn-link-label { translate: none; } }

/* Title */
.pause-head { text-align: center; }
.pause-head { margin-bottom: 10px; } /* room for the stamp on the first card below */
.pause-ploc { display: block; width: clamp(110px, 28vw, 150px); height: auto; margin: 0 auto 1rem; }
.pause-head h1 { font-size: var(--fs-display); margin-bottom: .8rem; }
.pause-head h1:focus { outline: none; }
.pause-lead { margin: 0; font-size: var(--fs-subtitle); color: var(--ink-soft); }

/* Cards (one per thing to say), and the button that sits on its own below them */
.pause-card { display: grid; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.pause-card[hidden] { display: none; }
#manage:not([hidden]) { display: grid; gap: var(--gap); }
.pause-card > *, .pause-actions > * { margin: 0; }
.pause-card h2 { font-size: var(--fs-h4); }
.pause-card h2:focus, .pause-card [data-done]:focus { outline: none; }
.pause-actions { display: grid; gap: .6rem; }
.pause-help { margin: 0; font-size: var(--fs-body-sm); color: var(--ink-soft); }
.pause-card button.btn-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink); font: 700 var(--fs-body) var(--font-body); cursor: pointer; }
.pause-loading { text-align: center; color: var(--ink-soft); }
.pause-card .form-status:empty, .pause-actions .form-status:empty, .pause-form .form-status:empty { display: none; }
/* "All done" after pausing or restarting: plain text, same colour as everything else */
.pause-done { color: var(--ink); }

/* Email form */
.pause-form { display: grid; gap: .4rem; }
.pause-form label { font-weight: 700; }
.pause-form .form-status { margin: 0; }
.pause-form .btn { margin-top: .6rem; }

/* Text boxes: always a black border; keyboard focus shows a ring around it */
.pause-form input, .pause-reason textarea { width: 100%; border: 2px solid var(--ink); border-radius: var(--radius-md); background: #fff; font: inherit; color: var(--ink); }
.pause-form input { min-height: 52px; margin-top: .3rem; padding: .8rem 1rem; }
.pause-reason textarea { padding: .7rem .9rem; resize: vertical; }
.pause-form input:focus, .pause-reason textarea:focus { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Theme of the next edition: a plain bold line */
.pause-theme { font-weight: 700; }

/* What pausing means: the site's ticked list */
.pause-lead-in { font-weight: 700; }
.pause-card .pause-ticks { margin: 0; }

/* The "why" question (required), in its own card: plain radios, titled like the other cards */
.pause-reason { display: grid; gap: .55rem; margin: 0; padding: 0; border: 0; }
.pause-reason legend { padding: 0; margin-bottom: .6rem; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h4); line-height: 1.2; }
.pause-reason label { display: flex; align-items: center; gap: .7rem; min-height: 44px; cursor: pointer; }
.pause-reason input[type=radio] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.pause-reason .pause-reason-note { display: grid; gap: .4rem; align-items: start; min-height: 0; cursor: default; }

/* Background on every page built on this file (/pause, /restart, /account): like the home pricing section,
   warm beige with the airmail pattern (selector shared in style.css), fading at the edges, clear behind the content */
.pause-page { --page-bg: #ebe3d6; }
.pause-page main { position: relative; isolation: isolate; overflow: hidden; }
.pause-page main::before { z-index: -1; }

/* A little stamp stuck on a card's corner, like the photos on the home page (.stamp-mini in style.css) */
.pause-card:has(> .stamp-mini) { position: relative; }
.pause-card > .stamp-mini { position: absolute; float: none; top: -18px; right: -10px; margin: 0; }
/* a cut-out drawing (no background of its own) on a soft blue stamp */
.stamp-mini.stamp-sky img { object-fit: cover; object-position: 50% 40%; background: #cfe2f4; }
/* phones: the text runs closer to the corner, so a smaller stamp sitting higher, clear of the words */
@media (max-width: 45.99rem) {
  .pause-card > .stamp-mini { width: 58px; height: 69px; padding: 5px; top: -28px; right: -6px; }
  .pause-head { margin-bottom: 20px; }
}

/* How long: two option tiles, "Pause for [− 1 month +]" and "Until I'm ready to come back". The chosen tile has an ink border. */
.pause-length { gap: .75rem; }
.pause-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .9rem 1.1rem 1rem; border: 2px solid #e6ddcf; border-radius: var(--radius-md); background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.pause-option.is-on { border-color: var(--ink); background: #fbf8f2; }
@media (hover: hover) { .pause-option:not(.is-on):hover { border-color: #c9bca8; } }
.pause-reason .pause-option-head { min-height: 44px; font-weight: 700; }
.pause-option-help { flex-basis: 100%; margin: 0; padding-left: 2.15rem; font-size: var(--fs-body-sm); color: var(--ink-soft); }

/* the counter: one rounded rectangle with a light beige border, − | 1 month | + */
.pause-stepper { display: inline-flex; align-items: stretch; border: 2px solid #e6ddcf; border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.pause-step { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font: 700 1.3rem/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.pause-step:focus-visible { outline-offset: -5px; }
@media (hover: hover) { .pause-step:not([aria-disabled="true"]):hover { background: var(--ink); color: #fff; } }
.pause-step[aria-disabled="true"] { color: #c9bca8; cursor: default; }
.pause-stepper-value { display: grid; place-items: center; min-width: 5.6rem; padding: 0 .5rem; border-inline: 2px solid #e6ddcf; font-weight: 700; }

/* a missing reason: the message under the choices */
.pause-reason [data-reason-error] { margin: .2rem 0 0; }
/* phones: the counter sits under "Pause for", lined up with the text */
@media (max-width: 45.99rem) { .pause-option .pause-stepper { margin-left: 2.15rem; } }
/* Phones (28 Nov): the header stays at the top while scrolling, like every other page */
@media (max-width: 640px) { .pause-page .site-header { position: sticky; } }
