/* FD Mobile Inventions
   Header, menu and page frame follow the site's former Twenty Sixteen theme.
   Fonts are self-hosted: Montserrat and Roboto (SIL Open Font License / Apache 2.0). */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: block;
  src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: block;
  src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: block;
  src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: block;
  src: url("fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: block;
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #686868;
  --rule: #d1d1d1;
  --paper: #ffffff;
  --wash: #f4f4f4;
  --backdrop: #c8c8c8;
  --link: #007acc;
  --display: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --text: Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--backdrop); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.7;
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--muted); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
p, ul, ol, dl { margin: 0; }
img { max-width: 100%; height: auto; }
.file, code { font-family: var(--mono); font-size: 0.88em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- page frame (as before) ---------- */

.site { background: var(--paper); }
.site-inner { margin: 0 auto; max-width: 1320px; position: relative; }
.site-header { padding: 2.625em 7.6923%; }
.site-header-main { display: flex; flex-wrap: wrap; align-items: center; }
.site-branding { margin: 0 auto 0 0; }

.menu-toggle {
  background: transparent; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.046875em;
  line-height: 1; text-transform: uppercase; cursor: pointer;
  margin: 1.076923077em 0; padding: 0.769230769em;
}
.menu-toggle:hover, .menu-toggle:focus { border-color: var(--link); color: var(--link); }
.menu-toggle.toggled-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.no-js .menu-toggle { display: none; }

.site-header-menu { display: none; flex: 0 1 100%; margin: 0.875em 0; }
.site-header-menu.toggled-on, .no-js .site-header-menu { display: block; }

.main-navigation { font-family: var(--display); font-size: 1rem; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation li { border-top: 1px solid var(--rule); position: relative; }
.main-navigation a { color: var(--ink); display: block; line-height: 1.3125; outline-offset: -1px; padding: 0.84375em 0; }
.main-navigation a:hover, .main-navigation a:focus { color: var(--link); }
.main-navigation .current-menu-item > a { font-weight: 700; }
.main-navigation .primary-menu { border-bottom: 1px solid var(--rule); }

.header-image { clear: both; margin: 0.875em 0; }
.header-image a { display: block; }
.header-image img { display: block; width: 100%; aspect-ratio: 1200 / 280; }
.header-image a:hover img, .header-image a:focus img { opacity: 0.85; }

.site-content { padding: 0 7.6923%; overflow-wrap: break-word; }
.site-main { margin-bottom: 3.5em; }

.site-footer { padding: 1.75em 7.6923%; border-top: 1px solid var(--rule); margin: 0 0 0; }
.site-info { color: var(--muted); font-size: 0.875rem; line-height: 1.6; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.75rem 2rem; }
/* The name is written here, not in the page text, so that search engines do not pick it up from the footer. */
.site-info .holder::after { content: "Florian Draschbacher"; }
.site-info a { color: var(--muted); }
.site-info a:hover, .site-info a:focus { color: var(--link); }
.site-info .site-title { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); }

@media screen and (min-width: 44.375em) {
  .site { margin: 21px; }
  .site-header { padding: 3.9375em 7.6923%; }
  .menu-toggle { font-size: 1rem; margin: 1.3125em 0; padding: 0.8125em 0.875em 0.6875em; }
  .site-header-menu { margin: 1.3125em 0; }
  .header-image { margin: 1.3125em 0; }
  .site-main { margin-bottom: 5.25em; }
}
@media screen and (min-width: 56.875em) {
  .site-header { padding-right: 4.5455%; padding-left: 4.5455%; }
  .site-header-main { align-items: flex-start; }
  .menu-toggle { display: none; }
  .site-header-menu { display: block; flex: 0 1 auto; margin-left: auto; }
  .main-navigation { margin: 0 -0.875em; }
  .main-navigation .primary-menu, .main-navigation .primary-menu > li { border: 0; }
  .main-navigation .primary-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .main-navigation a { outline-offset: -8px; padding: 0.65625em 0.875em; white-space: nowrap; }
  .site-content { padding: 0 4.5455%; }
  .site-footer { padding: 1.75em 4.5455% 3.5em; }
}
@media screen and (min-width: 61.5625em) {
  .site-header { padding: 5.25em 4.5455%; }
  .site-header-menu, .header-image { margin-top: 1.75em; margin-bottom: 1.75em; }
  .site-header-menu { margin-top: 0; }
  .site-main { margin-bottom: 7em; }
}
/* the header's lower padding is taken over by the banner's own margin */
.site-header { padding-bottom: 0; }

/* ---------- content ---------- */

.entry-title { font-size: 1.75rem; line-height: 1.25; margin: 1.25rem 0 0; letter-spacing: -0.01em; }
@media screen and (min-width: 44.375em) { .entry-title { font-size: 2.0625rem; margin-top: 1.75rem; } }
@media screen and (min-width: 61.5625em) { .entry-title { font-size: 2.5rem; line-height: 1.225; margin-top: 2.25rem; } }

.entry-content { margin-top: 2rem; }
.entry-content > * { max-width: 46rem; }
.entry-content > .wide { max-width: none; }
.entry-content p + p, .entry-content p + ul, .entry-content ul + p, .entry-content ol + p, .entry-content p + ol { margin-top: 1em; }
.entry-content p a, .entry-content li a { box-shadow: 0 1px 0 0 currentColor; }
.entry-content h2 { font-size: 1.5rem; line-height: 1.25; margin: 3rem 0 1rem; }
.entry-content h3 { font-size: 1.0625rem; line-height: 1.3; }
.entry-content > ul { padding-left: 1.3rem; }
.entry-content > ul > li + li { margin-top: 0.4rem; }
.entry-content hr { border: 0; height: 1px; background: var(--rule); margin: 3rem 0 0; max-width: none; }
@media screen and (min-width: 61.5625em) { .entry-content h2 { font-size: 1.75rem; } }

.intro { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.intro .app-icon { width: 96px; height: 96px; }
.intro p { align-self: center; }
.intro .actions { margin-top: 1.25rem; }
@media (max-width: 34rem) { .intro { grid-template-columns: 1fr; } .intro .app-icon { width: 72px; height: 72px; } }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.button {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.02em; line-height: 1.2; padding: 0.85em 1.15em; border-radius: 4px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); text-align: center;
}
.button:hover, .button:focus { background: var(--link); border-color: var(--link); color: #fff; }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button.quiet:hover, .button.quiet:focus { background: transparent; border-color: var(--link); color: var(--link); }

.steps { padding: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps > li + li { margin-top: 1rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05em;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 0.9rem; background: var(--ink); color: #fff;
}

.note { margin-top: 1.75rem; padding: 1rem 1.25rem; background: var(--wash); border-left: 4px solid var(--ink); }
.note + p { margin-top: 1rem; }

.downloads { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media screen and (min-width: 44.375em) { .downloads { grid-template-columns: repeat(2, 1fr); } }
@media screen and (min-width: 61.5625em) {
  .downloads.n3 { grid-template-columns: repeat(3, 1fr); }
  .downloads.n4 { grid-template-columns: repeat(4, 1fr); }
}
.dl {
  display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.35rem; min-width: 0;
  border: 1px solid var(--rule); border-top: 4px solid var(--ink); background: var(--paper);
}
.entry-content .dl-name { font-size: 1.2rem; line-height: 1.3; }
.dl-yours { display: block; font-family: var(--text); font-size: 0.9rem; font-weight: 500; color: var(--link); margin-top: 0.15rem; }
.dl.is-yours { border-color: var(--link); }
.dl-facts { margin: 0.9rem 0 1.25rem; display: grid; gap: 0.45rem; font-size: 0.95rem; line-height: 1.45; }
.dl-facts div { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.5rem; }
.dl-facts dt { color: var(--muted); }
.dl-facts dd { margin: 0; min-width: 0; }
.dl-facts .dl-sha { grid-template-columns: 1fr; gap: 0.1rem; }
.dl-sha code { display: block; font-size: 0.8rem; line-height: 1.5; overflow-wrap: anywhere; color: var(--ink); }
.pending { color: var(--muted); font-style: italic; }
.dl .button { margin-top: auto; align-self: flex-start; }

.log { display: grid; gap: 1.4rem; }
.log h3 { margin-bottom: 0.3rem; }
.log ul { padding-left: 1.3rem; }
.log li + li { margin-top: 0.2rem; }
details.older { margin-top: 1.5rem; }
details.older summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--link); width: fit-content; }
details.older .log { margin-top: 1.4rem; }

/* ---------- home ---------- */

.lead { font-size: 1.2rem; line-height: 1.6; }
.apps { display: grid; gap: 1.5rem; margin-top: 0.25rem; }
@media screen and (min-width: 56.875em) { .apps { grid-template-columns: 1fr 1fr; } }
.app { display: flex; flex-direction: column; border: 1px solid var(--rule); border-top: 4px solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); }
.app-head { display: flex; align-items: center; gap: 1rem; }
.app-head .app-icon { width: 64px; height: 64px; flex: none; }
.app-head h3 { font-size: 1.5rem; line-height: 1.2; }
.app-head p { color: var(--muted); line-height: 1.4; margin-top: 0.2rem; }
.app > p { margin-top: 1.25rem; }
.app ul { margin-top: 1rem; padding-left: 1.3rem; }
.app li + li { margin-top: 0.3rem; }
.editions { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: grid; gap: 0.5rem; }
.editions div { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.75rem; }
.editions dt { font-family: var(--display); font-weight: 700; font-size: 0.95rem; line-height: 1.8; }
.editions dd { margin: 0; }
.get { margin-top: auto; padding-top: 1.75rem; display: grid; gap: 1.1rem; }
.get h4 { font-family: var(--text); font-weight: 500; font-size: 0.95rem; color: var(--muted); margin: 0 0 0.5rem; }
.app .small { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

.two { display: grid; gap: 0 4rem; max-width: none; }
.two h2 { margin-top: 3.5rem; }
@media screen and (min-width: 56.875em) { .two { grid-template-columns: 1.25fr 1fr; } }

/* ---------- spacing fixes ---------- */

.entry-content > ul.downloads { padding: 0; }
.entry-content > ul.downloads > li + li { margin-top: 0; }
.entry-content a.button { box-shadow: none; }
.entry-content h2.first { margin-top: 0; }
.intro { margin-top: 1.25rem; }
.entry-content hr + p { margin-top: 2rem; }

.home-title { text-align: center; max-width: 46rem; margin-left: auto; margin-right: auto; }
.entry-content > .lead { margin-left: auto; margin-right: auto; text-align: center; }

/* server pages: one centered column, content left-aligned */
.server-page .site-main { max-width: 50rem; margin-left: auto; margin-right: auto; }
.server-page .entry-content > * { max-width: none; }
@media screen and (min-width: 61.5625em) {
  .server-page .downloads.n4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- privacy policies ---------- */

.policy-text h2 { font-size: 1.35rem; margin: 2.25rem 0 0.7rem; }
