/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff/*#d4a017*/;
  color: #000000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-name {
  font-weight: bold;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Hamburger button, hidden on wider screens */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #000000;
  transition: transform 0.2s, opacity 0.2s;
}

/* Turn the three bars into an X when open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections */
.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Lines above and below each app heading */
.app-title {
  border-top: 1px solid #8f6c0f;
  border-bottom: 1px solid #8f6c0f;
  padding-top: 16px;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.1;
}

h1,
h2 {
  font-size: 2rem;
}

p {
  margin: 0 0 16px;
  font-size: 2em;
}

/* App icon and heading on one line, centred vertically */
.app-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.app-title h2 {
  margin: 0;
}

/* App icons: rounded squares like iOS icons */
.app-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 22%;
  object-fit: cover;
}

.app-icon-white {
  background: #ffffff;
}

@media (max-width: 600px) {
  .app-icon {
    width: 44px;
    height: 44px;
  }
}

/* Screenshots: centred, shrinks to fit narrow screens */
.screenshots {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 32px;
}

.screenshots img {
  max-height: 500px;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* App Store badge */
.badge-row {
  text-align: center;
}

.app-store-badge {
  display: inline-block;
}

.app-store-badge img {
  height: 60px;
  width: auto;
}

/* Footer */
.site-footer .container {
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.875rem;
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h1,
  h2,
  p {
    font-size: 1.5rem;
  }

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