/* Sharp Timen sivusto https://sharptime.hdsoft.fi (web/build.py). Vain vaalea teema, värit kiinteinä. */
:root {
  --accent: #126a94;
  --ink: #1d2329;
  --muted: #555b61;
  --line: #d6d9dd;
  --paper: #f3f5f8;
  --bg: #fff;
  --ok: #1d7448;
  --crit: #b0261d;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper); padding: .1em .3em; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: .5rem; z-index: 10; }

.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }
.top nav a[aria-current] { color: var(--accent); }

.btn { display: inline-block; padding: .55rem 1.1rem; border-radius: 6px; background: var(--accent); color: #fff !important; font-weight: 600; text-decoration: none !important; border: 2px solid var(--accent); }
.btn.ghost { background: transparent; color: var(--accent) !important; }

.hero { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0 2rem; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.15fr; padding-top: 3.5rem; } }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); line-height: 1.15; margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.shot { display: block; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }

main section { padding: 2rem 0; border-top: 1px solid var(--line); }
main section h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; }
main section > p, main section > ol, main section > ul, main section > h3 { max-width: 760px; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 0 0 1rem; }
.three .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; background: var(--paper); }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; }
/* Kuvakaappaukset allekkain, jotta Azure DevOpsin teksti on luettavaa (tiketin kuva on lähes neliö, muut 16:9). */
.gallery .grid { grid-template-columns: 1fr; max-width: 960px; gap: 2rem; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

.doc { max-width: 760px; padding: 2.5rem 16px 3rem; }
.doc h1 { font-size: clamp(1.7rem, 3.6vw, 2.1rem); line-height: 1.2; margin: 0 0 1rem; }
.doc h2 { margin-top: 2rem; line-height: 1.3; }
.doc p, .doc li { overflow-wrap: anywhere; }

.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 2rem 0 2.5rem; color: var(--muted); font-size: .95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1rem; }
.foot p { margin: .35rem 0; }

/* Ostosivu (web/buy.js) */
.hdst { max-width: 640px; margin-top: 1.5rem; }
.hdst form, .hdst .hdst-box { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.hdst label { display: grid; gap: .35rem; font-weight: 600; }
.hdst .hdst-hint { font-weight: 400; font-size: .9em; color: var(--muted); }
.hdst input { font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.hdst input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hdst .hdst-total { font-size: 1.15em; margin: 0; }
.hdst .hdst-err { color: var(--crit); margin: 0; }
.hdst button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 6px; padding: .75rem 1.25rem; border: 2px solid var(--accent); background: var(--accent); color: #fff; justify-self: start; }
.hdst button:disabled { opacity: .6; cursor: wait; }
.hdst .hdst-key { display: grid; gap: .75rem; }
.hdst textarea { font: .85em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; width: 100%; min-height: 7.5em; padding: .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); word-break: break-all; resize: vertical; }
.hdst .hdst-ok { color: var(--ok); font-weight: 600; margin: 0; }
.hdst p { margin: 0; }
