/* Complications (complications.online): watches & luxury, laid out like a dial.
   White grand-feu enamel ground, heat-blued steel hairlines, minute tracks, cushion cases,
   sharp date-window apertures. Loaded only on this title's pages; every class and keyframe is
   prefixed complications-. Hahmlet heads, Gentium Book Plus text, Xanh Mono figures. */

#site-root[data-site='complications'] {
  --complications-blue: #1e3a8a;
  --complications-heat: #4a36a6;
  --complications-gold: #c9a24a;
  --complications-hair: color-mix(in srgb, var(--accent) 55%, transparent);
}
/* Xanh Mono draws its 3 with a flat top that reads as a 5 at small sizes ("3 min" looked like "5 min", "13:56" like
   "15:56"). Digits only come from Cutive Mono, another typewriter face; letters stay Xanh Mono. */
@font-face {
  font-family: 'Complications Figures'; font-display: swap;
  src: url(https://fonts.gstatic.com/s/cutivemono/v23/m8JWjfRfY7WVjVi2E-K9H6RCTm4.woff2) format('woff2');
  unicode-range: U+0030-0039;
}
#site-root[data-site='complications'] { --f-mono: "Complications Figures", "Xanh Mono", ui-monospace, monospace !important; }
#site-root[data-site='complications'] .font-head { font-synthesis: none; }
#site-root[data-site='complications'] .font-mono { font-weight: 400; font-synthesis: none; }

/* ---------- date-window aperture: sharp, white, inset shadow, hairline blued border ---------- */
.complications-win {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff; color: #121a2b;
  border: 0.5px solid var(--complications-hair);
  border-radius: 1.5px;
  box-shadow: inset 0 1px 2.5px rgba(18, 26, 43, 0.28), inset 0 -0.5px 0 rgba(18, 26, 43, 0.05);
  font-family: var(--f-mono), ui-monospace, monospace; font-weight: 400;
  line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---------- cushion case: a squircle-ish rounded square ---------- */
.complications-cushion { border-radius: 28%; overflow: hidden; }
.complications-cushion-soft { border-radius: 2rem; }

/* ---------- hairlines ---------- */
.complications-hr { height: 0; border: 0; border-top: 0.5px solid var(--complications-hair); }

/* Horizontal minute track: a minor tick every 1/60, a taller one every 1/12. */
.complications-track-x {
  height: 11px; color: var(--accent);
  background:
    linear-gradient(to right, currentColor 1px, transparent 1px) 0 0 / calc((100% - 1px) / 12) 11px repeat-x,
    linear-gradient(to right, color-mix(in srgb, currentColor 55%, transparent) 0.75px, transparent 0.75px) 0 0 / calc((100% - 1px) / 60) 5px repeat-x;
}
.complications-track-x.complications-track-fine { height: 7px; background-size: calc((100% - 1px) / 12) 7px, calc((100% - 1px) / 60) 3.5px; }

/* One nav segment of the desktop minute track: five minute ticks after a taller hour marker. */
.complications-seg {
  position: relative; color: var(--accent);
  background: linear-gradient(to right, color-mix(in srgb, currentColor 50%, transparent) 0.75px, transparent 0.75px) 0 0 / 20% 5px repeat-x;
}
.complications-seg::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 11px; background: currentColor; }
.complications-seg-end::after { content: ''; position: absolute; right: 0; top: 0; width: 1px; height: 11px; background: currentColor; }
.complications-seg[aria-current='page'] { background-image: linear-gradient(to right, currentColor 1px, transparent 1px); }
.complications-seg .complications-seg-l { transition: color 0.2s; }
.complications-seg:hover .complications-seg-l, .complications-seg[aria-current='page'] .complications-seg-l { color: var(--accent); }
.complications-seg[aria-current='page'] .complications-seg-l { text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 6px; }

/* ---------- divider: a five-minute segment of track, middle tick taller ---------- */
.complications-rule { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.complications-rule::before, .complications-rule::after { content: ''; flex: 1; border-top: 0.5px solid var(--complications-hair); }
.complications-rule > i {
  display: block; width: 46px; height: 13px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1px 13px no-repeat,
    linear-gradient(to right, currentColor 1px, transparent 1px) 0 100% / 11.25px 6px repeat-x;
}

/* ---------- links: hairline blue underline, heat-blued sheen on hover ---------- */
.complications-link {
  color: var(--accent); text-decoration: none;
  background: linear-gradient(90deg, var(--accent), var(--complications-heat) 50%, var(--accent)) 0 100% / 200% 1px no-repeat;
  transition: background-position 0.6s ease, color 0.3s;
}
.complications-link:hover { background-position: 100% 100%; color: var(--complications-heat); }

/* Card headline hover: a hairline underline that glides in. */
.complications-h { background: linear-gradient(currentColor, currentColor) 0 100% / 0 0.5px no-repeat; transition: background-size 0.35s ease; }
.group:hover .complications-h, .group:focus-visible .complications-h { background-size: 100% 1px; }

/* ---------- buttons: cushion shape, blued border, guilloché on hover ---------- */
.complications-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid var(--accent); border-radius: 1rem; color: var(--accent); background-color: var(--surface);
  transition: background-color 0.25s, color 0.25s;
}
.complications-btn:hover, .complications-btn:focus-visible {
  background-image:
    repeating-radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 14%, transparent) 0 0.6px, transparent 0.6px 4px),
    repeating-radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent) 14%, transparent) 0 0.6px, transparent 0.6px 4px);
}
.complications-btn-solid { background-color: var(--accent); color: var(--on-accent); }
.complications-btn-solid:hover, .complications-btn-solid:focus-visible {
  background-image:
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.13) 0 0.6px, transparent 0.6px 4px),
    repeating-radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.13) 0 0.6px, transparent 0.6px 4px);
}

/* ---------- sunray-brushed blue: newsletter block only ---------- */
.complications-sunray {
  --bg: #ffffff; --fg: #121a2b; --line: rgba(255, 255, 255, 0.4); --accent: #e8a28a; --on-accent: #121a2b; --muted: #c9d3f2;
  color: #ffffff;
  background:
    repeating-conic-gradient(from 0deg at 50% 118%, rgba(255, 255, 255, 0.055) 0deg 0.6deg, rgba(255, 255, 255, 0) 0.6deg 1.6deg),
    radial-gradient(130% 100% at 50% 118%, #4467d6 0%, #1e3a8a 46%, #101f55 100%);
}
.complications-sunray input { border-color: transparent; }

/* ---------- night scope: footer on blued-steel navy ---------- */
.complications-night {
  --bg: #121a2b; --fg: #f7f5ef; --muted: #a9b2c7; --line: rgba(247, 245, 239, 0.16); --accent: #9db4ff; --on-accent: #121a2b; --surface: #1a2440;
  --complications-hair: rgba(157, 180, 255, 0.45);
  background: #121a2b; color: #f7f5ef;
}

/* ---------- motion: sweeping seconds hand, stepping badge hand, blinking marker, date roll ---------- */
@keyframes complications-spin { to { transform: rotate(360deg); } }
.complications-sweep { animation: complications-spin 60s linear infinite; transform-origin: 50% 50%; }
.complications-step { transform-origin: 8px 8px; animation: complications-spin 6s steps(48) infinite; }
@keyframes complications-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.2; } }
.complications-blink { animation: complications-blink 1s steps(1) infinite; }
@keyframes complications-roll { from { transform: translateY(110%); } to { transform: none; } }
.complications-roll { display: inline-block; overflow: hidden; vertical-align: top; }
.complications-roll > span { display: block; animation: complications-roll 0.75s cubic-bezier(0.3, 1.35, 0.5, 1) 0.35s both; }

/* Crown button: a knurled crown sticking out of the left edge of the case. */
.complications-crown {
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.28) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    linear-gradient(to right, #142a6b, #2a4cb0 55%, #142a6b);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(18, 26, 43, 0.3);
}
.complications-crownstem { background: linear-gradient(to bottom, #b9c0cf, #e8eaf0 50%, #9aa2b4); }
#site-root[data-site='complications'] button:hover .complications-crown, #site-root[data-site='complications'] button[aria-expanded='true'] .complications-crown { transform: translateX(2px); }
.complications-crown { transition: transform 0.25s ease; }

/* Phone menu drawer slides from the crown side. */
@keyframes complications-drawer { from { transform: translateX(-100%); } to { transform: none; } }
.complications-drawer { animation: complications-drawer 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Horizontal scroller edge fade. */
.complications-fade { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent); }
.complications-noscroll { scrollbar-width: none; }
.complications-noscroll::-webkit-scrollbar { display: none; }

/* ---------- article prose ---------- */
#site-root[data-site='complications'] .complications-prose { font-size: 1.125rem; line-height: 1.72; }
@media (min-width: 768px) { #site-root[data-site='complications'] .complications-prose { font-size: 1.25rem; line-height: 1.7; } }
#site-root[data-site='complications'] .complications-prose > * + * { margin-top: 1.15em; }
#site-root[data-site='complications'] .complications-prose h2 {
  font-family: var(--font-head), Georgia, serif; font-weight: 600; font-size: 1.6rem; line-height: 1.18; letter-spacing: -0.005em;
  margin-top: 2.1em; scroll-margin-top: 6rem; color: var(--fg);
}
@media (min-width: 768px) { #site-root[data-site='complications'] .complications-prose h2 { font-size: 1.95rem; } }
#site-root[data-site='complications'] .complications-prose h2::before {
  content: ''; display: block; width: 46px; height: 13px; margin-bottom: 0.7em;
  background:
    linear-gradient(var(--accent), var(--accent)) 50% 0 / 1px 13px no-repeat,
    linear-gradient(to right, var(--accent) 1px, transparent 1px) 0 100% / 11.25px 6px repeat-x;
}
#site-root[data-site='complications'] .complications-prose h3 { font-family: var(--font-head), Georgia, serif; font-weight: 600; font-size: 1.3rem; margin-top: 1.8em; }
#site-root[data-site='complications'] .complications-prose a {
  color: var(--accent); text-decoration: none;
  background: linear-gradient(90deg, var(--accent), var(--complications-heat) 50%, var(--accent)) 0 100% / 200% 1px no-repeat;
  transition: background-position 0.6s ease, color 0.3s;
}
#site-root[data-site='complications'] .complications-prose a:hover { background-position: 100% 100%; color: var(--complications-heat); }
#site-root[data-site='complications'] .complications-prose strong { font-weight: 700; }
#site-root[data-site='complications'] .complications-prose em { font-style: italic; }

/* Pull quote: centred Hahmlet inside an outlined cushion. */
#site-root[data-site='complications'] .complications-prose blockquote {
  position: relative; margin: 2.2em 0; padding: 2.1rem 1.4rem 1.7rem; text-align: center;
  border: 1px solid var(--complications-hair); border-radius: 2.75rem;
  font-family: var(--font-head), Georgia, serif; font-weight: 500; font-size: 1.4rem; line-height: 1.32; color: var(--fg);
}
@media (min-width: 768px) { #site-root[data-site='complications'] .complications-prose blockquote { padding: 2.5rem 2.75rem 2rem; font-size: 1.7rem; border-radius: 3.5rem; } }
#site-root[data-site='complications'] .complications-prose blockquote::before {
  content: ''; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 7px var(--accent);
}
#site-root[data-site='complications'] .complications-prose blockquote p { margin: 0; }
#site-root[data-site='complications'] .complications-prose blockquote p + p { margin-top: 0.6em; }

/* Bullets: pomme hand tips (stem, open "apple", point). Numbered lists: blued Roman numerals. */
#site-root[data-site='complications'] .complications-prose ul { list-style: none; padding-left: 0; }
#site-root[data-site='complications'] .complications-prose ul > li { position: relative; padding-left: 1.6em; }
#site-root[data-site='complications'] .complications-prose ul > li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 1.05em; height: 0.6em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h8.2M13.6 5H18' stroke='%231e3a8a' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='10.9' cy='5' r='2.6' stroke='%231e3a8a' stroke-width='1.2' fill='none'/%3E%3Cpath d='M15.6 3.6 18 5l-2.4 1.4z' fill='%231e3a8a'/%3E%3C/svg%3E") 0 0 / contain no-repeat;
}
#site-root[data-site='complications'] .complications-prose ol { list-style: upper-roman; padding-left: 2.6em; }
#site-root[data-site='complications'] .complications-prose ol > li::marker { color: var(--accent); font-family: var(--f-mono), ui-monospace, monospace; font-size: 0.9em; }
#site-root[data-site='complications'] .complications-prose li + li { margin-top: 0.45em; }

/* Drop cap: a blued Hahmlet initial inside a small enamel subdial with 60 micro ticks. */
.complications-cap {
  float: left; display: grid; place-items: center; width: 92px; height: 92px; margin: 6px 14px 0 -2px;
  shape-outside: circle(50%); shape-margin: 6px; border-radius: 50%;
  font-family: var(--font-head), Georgia, serif; font-weight: 700; font-size: 54px; line-height: 1; color: var(--accent);
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='49.5' fill='none' stroke='%231e3a8a' stroke-width='.7'/%3E%3Cpath stroke='%231e3a8a' stroke-width='.6' d='M55.12 1.27L54.81 4.25M60.19 2.07L59.56 5.01M65.14 3.4L64.21 6.25M69.93 5.24L68.71 7.98M78.8 10.36L77.04 12.79M82.79 13.59L80.78 15.82M86.41 17.21L84.18 19.22M89.64 21.2L87.21 22.96M94.76 30.07L92.02 31.29M96.6 34.86L93.75 35.79M97.93 39.81L94.99 40.44M98.73 44.88L95.75 45.19M98.73 55.12L95.75 54.81M97.93 60.19L94.99 59.56M96.6 65.14L93.75 64.21M94.76 69.93L92.02 68.71M89.64 78.8L87.21 77.04M86.41 82.79L84.18 80.78M82.79 86.41L80.78 84.18M78.8 89.64L77.04 87.21M69.93 94.76L68.71 92.02M65.14 96.6L64.21 93.75M60.19 97.93L59.56 94.99M55.12 98.73L54.81 95.75M44.88 98.73L45.19 95.75M39.81 97.93L40.44 94.99M34.86 96.6L35.79 93.75M30.07 94.76L31.29 92.02M21.2 89.64L22.96 87.21M17.21 86.41L19.22 84.18M13.59 82.79L15.82 80.78M10.36 78.8L12.79 77.04M5.24 69.93L7.98 68.71M3.4 65.14L6.25 64.21M2.07 60.19L5.01 59.56M1.27 55.12L4.25 54.81M1.27 44.88L4.25 45.19M2.07 39.81L5.01 40.44M3.4 34.86L6.25 35.79M5.24 30.07L7.98 31.29M10.36 21.2L12.79 22.96M13.59 17.21L15.82 19.22M17.21 13.59L19.22 15.82M21.2 10.36L22.96 12.79M30.07 5.24L31.29 7.98M34.86 3.4L35.79 6.25M39.81 2.07L40.44 5.01M44.88 1.27L45.19 4.25'/%3E%3Cpath stroke='%231e3a8a' stroke-width='1.3' d='M50 1L50 7M74.5 7.56L71.5 12.76M92.44 25.5L87.24 28.5M99 50L93 50M92.44 74.5L87.24 71.5M74.5 92.44L71.5 87.24M50 99L50 93M25.5 92.44L28.5 87.24M7.56 74.5L12.76 71.5M1 50L7 50M7.56 25.5L12.76 28.5M25.5 7.56L28.5 12.76'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  box-shadow: inset 0 1px 3px rgba(18, 26, 43, 0.12);
}
@media (min-width: 768px) { .complications-cap { width: 128px; height: 128px; font-size: 76px; margin: 7px 20px 0 -4px; } }

/* ---------- comments, "Wrist checks": masonry of left-aligned cushion cards ---------- */
.complications-wrist h2 { font-family: var(--f-mono), ui-monospace, monospace !important; font-weight: 400 !important; font-size: 13px !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.complications-wrist h2 span { color: var(--accent); }
.complications-wrist form { border: 0.5px solid var(--complications-hair) !important; border-radius: 1.6rem; background: var(--surface); padding: 1.1rem !important; }
.complications-wrist input, .complications-wrist textarea { border-radius: 1rem !important; border-width: 0.5px !important; border-color: var(--complications-hair) !important; }
.complications-wrist form button { border-radius: 1rem !important; border: 1px solid var(--accent); }
.complications-wrist ul { column-gap: 1.25rem; }
@media (min-width: 768px) { .complications-wrist ul { columns: 2; } }
.complications-wrist ul > li {
  break-inside: avoid; display: flex; margin: 0 0 1rem !important; padding: 1rem 1.1rem !important;
  border: 0.5px solid var(--complications-hair) !important; border-radius: 1.4rem; background: var(--surface);
}
.complications-wrist ul > li.ml-10 { border-left: 2px solid var(--accent) !important; }
.complications-wrist ul > li > span:first-child { border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 2.5px var(--accent); }

/* Reduced motion: no sweeping, stepping, blinking, rolling or sliding. */
@media (prefers-reduced-motion: reduce) {
  .complications-sweep, .complications-step, .complications-blink, .complications-roll > span, .complications-drawer { animation: none !important; }
  .complications-link, .complications-h, .complications-crown { transition: none !important; }
}

/* Article hero: the circular crop sits off-centre and bleeds past the right edge. */
.complications-bleed { width: min(90vw, 560px); margin-left: auto; margin-right: -10vw; }
@media (min-width: 768px) { .complications-bleed { margin-right: -5vw; } }
@media (min-width: 1024px) { .complications-bleed { width: min(55vw, 780px); margin-right: calc(min(0px, (1232px - 100vw) / 2) - 6vw); } }

/* Shared sign-up form, re-cut as cushions inside the sunray block. */
.complications-sunray form input, .complications-sunray form button, .complications-sunray form > div { border-radius: 1rem !important; }
.complications-sunray form button { font-family: var(--font-head), Georgia, serif; }
