/* USA Plaque Designer website. One stylesheet for every page. */

:root {
  --navy-900: #12223a;
  --navy: #1f3a5c;
  --navy-600: #2c5080;
  --navy-100: #e6ecf4;
  --red: #a31f2a;
  --red-700: #82161f;
  --red-100: #fbe9ea;
  --wood: #b07a4f;
  --wood-dark: #7a5134;
  --wood-light: #efe2cf;
  --paper: #faf7f2;
  --white: #ffffff;
  --ink: #1b2430;
  --muted: #545f6e;
  --line: #e2dacb;
  --green-100: #e7f4ea;
  --green-700: #1f6b35;
  --focus: #f2b84b;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(18 34 58 / 0.08), 0 8px 24px rgb(18 34 58 / 0.1);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Rockwell Nova", Rockwell, "Roboto Slab", "Zilla Slab", Georgia, serif;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--navy-600);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

code,
kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}

kbd {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 0.3em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 24px;
  }
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  background: var(--white);
  color: var(--navy-900);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.site-header {
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand:hover {
  color: var(--white);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-block;
  color: #dfe6f0;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgb(255 255 255 / 0.1);
}

.site-nav a.nav-buy {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  margin-left: 4px;
}

.site-nav a.nav-buy:hover,
.site-nav a.nav-buy[aria-current="page"] {
  background: var(--red-700);
}

@media (max-width: 640px) {
  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 2px;
  }

  .site-nav a {
    padding: 6px 7px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .site-nav a.nav-buy {
    margin-left: 0;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-700);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.on-dark .btn-outline {
  color: var(--white);
  border-color: rgb(255 255 255 / 0.75);
}

.on-dark .btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.2em 0;
}

.btn-wide {
  width: 100%;
}

/* Hero */

.hero {
  background:
    repeating-linear-gradient(180deg, rgb(255 255 255 / 0.025) 0 28px, transparent 28px 56px),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 70%);
  color: #e9eef5;
  padding: 48px 0 56px;
  overflow: hidden;
}

.hero h1 {
  color: var(--white);
}

.hero .lede {
  font-size: 1.2rem;
  color: #d5deea;
  max-width: 38em;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 64px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.hero-note {
  font-size: 0.95rem;
  color: #c3cfdf;
}

.window {
  border-radius: 10px;
  overflow: hidden;
  background: #11161f;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
}

.window figcaption,
figure figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 8px;
}

.hero figure {
  margin: 0;
}

.hero figure figcaption {
  color: #b8c4d4;
}

/* Page heads for inner pages */

.page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 80%);
  color: #e3e9f2;
  padding: 40px 0 36px;
}

.page-head h1 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.page-head p {
  max-width: 40em;
  font-size: 1.12rem;
  margin: 0;
}

/* Sections */

.section {
  padding: 56px 0;
}

.section-white {
  background: var(--white);
}

.section-wood {
  background: var(--wood-light);
}

.section-intro {
  max-width: 44em;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.on-dark .eyebrow {
  color: #f0a5ab;
}

/* Grids and cards */

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.section-white .card {
  background: var(--paper);
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-img {
  margin: -20px -20px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #161c26;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--navy-100);
  color: var(--navy);
  margin-bottom: 10px;
}

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .split-reverse > :first-child {
    order: 2;
  }
}

.shot {
  margin: 0;
}

.shot img {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #161c26;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Templates and resin */

.templates figure,
.resins figure {
  margin: 0;
}

.templates img,
.resins img {
  border-radius: 8px;
  background: #161c26;
}

.resins {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .resins {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.resins figcaption,
.templates figcaption {
  text-align: center;
  font-weight: 600;
  color: var(--ink);
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  margin: 0;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.steps p {
  margin: 0;
}

/* Price */

.price-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  max-width: 520px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 4px;
}

.price-amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--navy-900);
}

.price-term {
  color: var(--muted);
  font-weight: 600;
}

.price-box .check-list {
  margin: 18px 0;
}

.price-box .fine {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* FAQ */

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  color: var(--navy-900);
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 18px 16px;
}

.faq .answer p:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

/* Notices and placeholders */

.notice {
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  background: var(--navy-100);
  border-left: 5px solid var(--navy);
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice-error {
  background: var(--red-100);
  border-left-color: var(--red);
}

.notice-ok {
  background: var(--green-100);
  border-left-color: var(--green-700);
}

.notice[hidden] {
  display: none;
}

.placeholder {
  border: 2px dashed var(--red);
  background: repeating-linear-gradient(135deg, #fff 0 14px, #fdf3f3 14px 28px);
  color: var(--red-700);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.ph-label {
  display: inline-block;
  align-self: flex-start;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.placeholder p {
  margin: 0.3em 0 0;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

/* Forms */

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.field {
  flex: 1 1 240px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid #b9b2a5;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--navy);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin: 24px 0;
}

.panel h2 {
  font-size: 1.4rem;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--navy-100);
  border-top-color: var(--navy);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
}

/* Prose pages (help, privacy, terms) */

.prose h2 {
  margin-top: 1.6em;
  padding-top: 0.2em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.4em;
}

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.toc ol {
  margin: 0;
}

.layer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
}

.layer-table th,
.layer-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 6px;
  border: 1px solid rgb(0 0 0 / 0.2);
}

.sw-c00 { background: #000000; }
.sw-c01 { background: #0000ff; }
.sw-c02 { background: #ff0000; }
.sw-c03 { background: #00e000; }
.sw-c04 { background: #d0d000; }
.sw-c05 { background: #ff8000; }
.sw-c07 { background: #ff00ff; }
.sw-c10 { background: #a00000; }
.sw-c11 { background: #00a000; }

.req-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.req-list div {
  display: grid;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .req-list div {
    grid-template-columns: 180px 1fr;
  }
}

.req-list dt {
  font-weight: 700;
}

.req-list dd {
  margin: 0;
}

/* Footer */

.site-footer {
  background: var(--navy-900);
  color: #c4cfdd;
  padding: 40px 0 28px;
  font-size: 0.95rem;
  border-top: 4px solid var(--wood);
}

.site-footer a {
  color: #e6ecf4;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 4px;
}

.footer-fine {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.85rem;
  color: #9fadc0;
}

.footer-fine p {
  margin: 0 0 6px;
}

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.mt-md {
  margin-top: 32px;
}

.mt-lg {
  margin-top: 56px;
}

.shot-narrow {
  max-width: 320px;
  margin-inline: auto;
}

.text-max {
  max-width: 46em;
}

.hero h2 {
  color: var(--white);
}

.lede-center {
  margin-inline: auto;
}

.btn-row-center {
  justify-content: center;
}
