/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #DFD5C8;
  color: #262523;
  text-shadow: none;
}

::selection {
  background: #DFD5C8;
  color: #262523;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--slate);
  margin: 1.5em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
:root {
  --alabaster: #F9F7F2;
  --surface: #FFFFFF;
  --charcoal: #262523;
  --muted: #4A4742;
  --walnut: #7A5A36;
  --walnut-hover: #614628;
  --slate: #E2DDD5;
  --heading-font: 'Playfair Display', Georgia, serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--alabaster);
  color: var(--charcoal);
  font-family: var(--body-font);
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Skip to main content link for keyboard and screen reader users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 3000;
  background-color: var(--charcoal);
  color: var(--alabaster);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--walnut);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Accessible focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--walnut);
  outline-offset: 3px;
}

header {
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid var(--slate);
  background-color: var(--alabaster);
}

h1 {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--charcoal);
  font-weight: 600;
}

.brand-link,
.brand-link:link,
.brand-link:visited {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.brand-tagline {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

nav {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

nav a {
  text-decoration: none;
  color: var(--charcoal);
  padding: 0.25rem 0;
  font-family: var(--heading-font);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  color: var(--walnut);
  border-bottom-color: var(--walnut);
}

nav a[aria-current="page"] {
  color: var(--walnut);
  border-bottom: 1px solid var(--walnut);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Editorial Page Intro */
.page-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.page-intro .eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--walnut);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-intro h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--charcoal);
}

.page-intro p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* Responsive Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  background: none;
  overflow: hidden;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.gallery-item > a,
.gallery-item > a:link,
.gallery-item > a:visited {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--alabaster);
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: var(--slate);
  transition: transform 0.5s ease;
}

.gallery-item > a:hover img,
.gallery-item > a:focus-visible img {
  transform: scale(1.03);
}

/* Gallery Card Caption Overlay */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(24, 22, 20, 0.85) 0%, rgba(24, 22, 20, 0.45) 60%, rgba(24, 22, 20, 0) 100%);
  color: var(--alabaster);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: opacity 0.3s ease;
}

.gallery-caption-title {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0.3px;
  color: var(--alabaster);
}

.gallery-caption-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
  color: var(--alabaster);
}

.gallery-more {
  margin-top: 2.5rem;
  text-align: right;
}

.text-link,
.text-link:link,
.text-link:visited {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--walnut);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--walnut);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--walnut-hover);
  border-bottom-color: var(--walnut-hover);
}

/* The Quote "Floating" Box */
.quote-content {
  background-color: var(--walnut);
  color: var(--alabaster);
  padding: 3rem 2rem;
  text-align: center;
  width: 85%;
  max-width: 400px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-radius: 2px;
}

.quote-content p {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0;
}

.quote-content span {
  display: block;
  margin-top: 1.5rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 2px;
}

/* Make the first image or a specific quote wider on large screens */
@media (min-width: 900px) {
  .feature-wide {
    grid-column: span 2;
  }

  .feature-wide img {
    max-height: 100%;
  }
}

footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--slate);
  font-size: 0.82rem;
  color: var(--muted);
}

footer p {
  margin: 0.35rem 0;
}

@media (max-width: 600px) {
  header {
    padding: 1.5rem 1rem 1.25rem;
  }
  h1 {
    font-size: 1.65rem;
    letter-spacing: 1.5px;
  }
  .brand-tagline {
    font-size: 0.68rem;
    letter-spacing: 1.2px;
  }
  nav {
    gap: 0.5rem 1.1rem;
  }
  nav a {
    font-size: 0.82rem;
  }
  .container {
    padding: 2rem 1rem;
  }
  .page-intro h2 {
    font-size: 1.95rem;
  }
  .gallery-item {
    height: 340px;
  }
}

/* Call to Action Banner */
.contact-section {
  background-color: var(--charcoal);
  color: var(--alabaster);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 2px;
}

.contact-container {
  max-width: 620px;
  margin: 0 auto;
}

.contact-section h1,
.contact-section h2 {
  font-family: var(--heading-font);
  font-size: 2.15rem;
  margin: 0 0 1rem;
  color: var(--alabaster);
}

.contact-section p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.contact-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--walnut);
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.contact-btn:hover {
  background-color: var(--walnut-hover);
}

.social-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-footer a {
  color: var(--alabaster);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(249, 247, 242, 0.35);
  transition: border-color 0.25s ease;
}

.social-footer a:hover {
  border-bottom-color: var(--alabaster);
}

/* Project Detail Page */
.project-nav {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate);
}

.project-nav-links {
  display: flex;
  gap: 1.5rem;
}

.project-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--walnut);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.project-nav a:hover {
  color: var(--walnut-hover);
  border-bottom-color: var(--walnut-hover);
}

.project-header h2 {
  font-family: var(--heading-font);
  font-size: 2.75rem;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--charcoal);
}

.project-description {
  margin: 2.75rem 0 3.25rem;
  max-width: 740px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--muted);
}

.project-description p {
  margin: 0 0 1.35rem;
}

.project-gallery .gallery-item > a,
.process-item > a {
  cursor: zoom-in;
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 17, 16, 0.92);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.close:hover,
.close:focus-visible {
  opacity: 1;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  user-select: none;
  text-decoration: none;
  opacity: 0.65;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover,
.prev:focus-visible,
.next:focus-visible {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .prev,
  .next {
    width: 22%;
    font-size: 30px;
  }
  .close {
    top: 12px;
    right: 20px;
    font-size: 32px;
  }
  .project-header h2 {
    font-size: 2.1rem;
  }
}

/* About Section Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  filter: grayscale(15%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.about-text h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin: 0 0 1.5rem;
  line-height: 1.2;
  color: var(--charcoal);
}

.about-text p {
  font-size: 1.06rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Process Gallery Styles */
.process-section {
  margin-top: 5rem;
  border-top: 1px solid var(--slate);
  padding-top: 4rem;
}

.process-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.process-header h3 {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.95rem;
  color: var(--walnut);
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.process-item {
  position: relative;
  filter: saturate(20%);
  transition: filter 0.3s ease;
}

.process-item:hover,
.process-item:focus-within {
  filter: none;
}

.process-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Small Caption for process details */
.process-item span {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--walnut);
  font-weight: 600;
}

.fact-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin: 2.5rem 0 0;
}

.fact-item {
  border-left: 2px solid var(--walnut);
  padding-left: 18px;
  padding-bottom: 6px;
}

.fact-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--walnut);
  margin-bottom: 6px;
  font-weight: 600;
}

.fact-value {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--charcoal);
  margin: 0;
}

/* Specialty Highlight for the Triangle */
.specialty-callout {
  grid-column: 1 / -1;
  background: #EFECE4;
  border-left: 3px solid var(--walnut);
  padding: 2rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 2px;
}

.triangle-icon {
  font-size: 2.25rem;
  color: var(--walnut);
  line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-text h2 {
    font-size: 2rem;
  }
  .specialty-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Contact Page & Form Styles */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}

.contact-details h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--charcoal);
}

.contact-details p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

.commission-steps {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--slate);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.commission-step {
  border-left: 2px solid var(--walnut);
  padding-left: 1rem;
}

.commission-step strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--walnut);
  margin-bottom: 0.25rem;
}

.commission-step span {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form-card {
  border-top: 2px solid var(--walnut);
  background-color: var(--surface);
  padding: 2.5rem 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--charcoal);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate);
  background-color: var(--alabaster);
  color: var(--charcoal);
  font-family: var(--body-font);
  font-size: 1rem;
  box-sizing: border-box;
  border-radius: 2px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--walnut);
  background-color: var(--surface);
}

.contact-form > .contact-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }
}

.success-message {
  color: #1B5E20;
  background-color: #E8F5E9;
  border-left: 3px solid #2E7D32;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.error-message {
  color: #B71C1C;
  background-color: #FFEBEE;
  border-left: 3px solid #C62828;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  list-style-position: inside;
  text-align: left;
}

/* Workshop Tools / Calculators Styles */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

.calculator-card {
  border-top: 2px solid var(--walnut);
  background-color: var(--surface);
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border-radius: 2px;
}

.calculator-header h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  margin: 0.25rem 0 1rem 0;
  color: var(--charcoal);
}

.calculator-header p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.calculator-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calc-row label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--charcoal);
  font-weight: 600;
}

.input-with-unit {
  display: flex;
  gap: 0.5rem;
}

.input-with-unit input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate);
  background-color: var(--alabaster);
  color: var(--charcoal);
  font-family: var(--body-font);
  font-size: 1rem;
  box-sizing: border-box;
  border-radius: 2px;
}

.input-with-unit select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  border: 1px solid var(--slate);
  background-color: var(--alabaster);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232C2C2C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  color: var(--charcoal);
  font-family: var(--body-font);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 2px;
}

@supports (appearance: base-select) {
  .input-with-unit select,
  .input-with-unit select::picker(select) {
    appearance: base-select;
  }

  .input-with-unit select {
    align-items: center;
  }

  .input-with-unit select::picker-icon {
    display: none;
  }

  .input-with-unit select::picker(select) {
    border: 1px solid var(--slate);
    background-color: var(--surface);
    color: var(--charcoal);
    font-family: var(--body-font);
    border-radius: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 0.25rem 0;
  }

  .input-with-unit option {
    padding: 0.5rem 0.85rem;
  }
}

.calc-divider {
  border: 0;
  border-top: 1px solid var(--slate);
  margin: 0.5rem 0;
}

.calc-results {
  margin-top: 1.5rem;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Print styles.
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
