/* CSS Custom Properties */
:root {
  --ios-device-corner-radius: 55px; /* Matches iPhone display corner radius */
}

/* Base Styles - Default (privacy/releases/support pattern) */
body {
  font-family: sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #1e1e1e;
  background-color: #fff;
  text-align: center;
  padding-top: 10px;
}

/* Padded left for privacy page */
body.body-padded-left {
  padding-left: 10px;
}

/* Headings */
h1 {
  font-size: clamp(24px, 3.5vw, 28px);
  margin-top: 0px;
  color: #999;
}

/* Hide h1 on index page only (logo is used instead) */
body.home > .content > .centerize > h1:first-of-type {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

h2 {
  font-size: clamp(18px, 3vw, 22px);
}

h3 {
  font-size: clamp(16px, 3vw, 18px);
}

body.home h3 {
  font-size: clamp(18px, 3vw, 22px);
}

h4 {
  font-size: clamp(16px, 3vw, 18px);
}

h5 {
  font-size: clamp(14px, 1vw, 16px);
  margin: 5px 0;
}

h6 {
  font-size: clamp(10px, 1vw, 12px);
}

h6 a, .footer a {
  font-weight: 100;
}

/* Links */
a, a:visited { color: #000; text-underline-offset: 4px;}
a:hover { text-decoration: underline; text-underline-offset: 4px;}

/* Lists */
li {
  padding-bottom: 10px;
}

ul {
  padding-top: 10px;
}

img {
  max-width: 100%;
  height: auto;
}

/* colors */

.black { color: #000; }
.black a { color: #000; }
.black a:hover { text-decoration: underline; }

.gray { color: #999; }
.gray a { color: #999; }
.gray a:hover { text-decoration: underline; }

/* Layout Classes */
.header {
  font-size: clamp(12px, 1.5vw, 14px);
  color: #999;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 20px;
}

.header a {
  font-weight: 100;
}

.header a:hover {
  text-decoration: underline;
}

/* Navigation list */
header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

header nav li {
  padding-bottom: 0;
}

header nav li:not(:last-child)::after {
  content: '\00a0\00a0\00a0|\00a0\00a0\00a0';
}

.indent{
  padding-left: 25px;
}

.subtitle{
  font-size: clamp(16px, 2.5vw, 18px);
  color: #999;
  margin-top: 10px;
}

.content {
  padding: 10px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.centerize {
  width: 100%;
  text-align: center;
}

.spacer {
  height: 40px;
}

.hero-link{
  border: 1px solid #999;
  border-radius: 12px;
  padding: 30px 30px;
  display: inline-block;
}

/* Text Block Component */
.text-block {
  background-color: #eee;
  border-radius: 12px;
  padding: 10px 20px;
  display: inline-block;
  width: 90%;
  max-width: 650px;
}

.ss-block {
  background-color: #eee;
  border-radius: 12px;
  padding: 15px 20px;
  display: inline-block;
}

.ss-block .screenshot {
  width: 200px;
}

/* Features List */
.features-list {
  display: inline-block;
  text-align: left;
  line-height: 16pt;
  width: 100%;
  max-width: 600px;
}


/* Typography Classes */
.last-updated {
  font-size: clamp(14px, 2vw, 15px);
  color: #999;
  margin-top: 20px;
}

.info {
  font-size: clamp(12px, 2vw, 14px);
  color: #999;
  margin-top: 20px;
  font-style: italic;
}

.footer {
  font-size: clamp(12px, 1.5vw, 14px);
  color: #0ff;
  font-family: monospace;
}

a.footer-link, a.footer-link:visited {
  color:#0ff;
}

footer.footer {
  margin: 1.5em 0;
}

main.content {
  margin-bottom: 50px;
}

.support-text {
  font-family: sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  text-align: center;
}

/* Badge */
.badge {
  width: 125px;
  margin-top: 20px;
}

/* Download Link */
.link {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* index page */
.download-table {
  margin: 0 auto;
  border-spacing: 15px 10px;
}

.download-label {
  text-align: right;
  white-space: nowrap;
  vertical-align: top;
}

.download-link {
  text-align: left;
}


/* Phone Shadow Effect */
.phone-shadow {
  filter: drop-shadow(5px 5px 4px rgba(0, 0, 0, 0.25));
}

.logo { width: 20%; }
.phone { width: 35%; }
.screenshot {
  width: 30%;
  border: 2px solid #000;
  border-radius: var(--ios-device-corner-radius);
}

@media (min-width: 400px) {
  .logo { width: 50%; }
  .phone { width: 45%; }
  .screenshot { width: 50%; }
  .ss-block .screenshot { width: 200px; }
}

@media (min-width: 600px) {
  .logo { width: 35%; }
  .phone { width: 25%; }
  .screenshot { width: 35%; }
  .ss-block .screenshot { width: 300px; }
}

/* Light Mode */
@media (prefers-color-scheme: light) {
  body {
    background-color: #fff;
    color: #1e1e1e;
  }

  a, a:visited { color: #000; }

  .hero-link { border: 1px solid #999;}

  .text-block {
    background-color: #eee;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1e1e1e;
    color: #fff;
  }

  a, a:visited { color: #fff; }

  .hero-link { border: 1px solid #999;}

  .title {
    color: #fff;
  }

  .text-block {
    background-color: #333;
  }

  .ss-block {
    background-color: #333;
  }
}
