/* =================================================================
   plstnx.lol — Global Stylesheet
   Plain CSS. No preprocessor, no framework, no build step.
   Values are taken from the approved implementation specification,
   the Figma component analysis, and the provided screenshots.
   Where a value could not be confirmed, it is left as a marked
   comment rather than invented.
   ================================================================= */

/* -----------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ----------------------------------------------------------------- */

:root {
  --color-darkest: #000000;
  --color-white: #ffffff;
  --color-dark: #454545;
  --color-light: #8d8d8d;
  --color-lightest: #dcdcdc;
  --color-error: #d60303;

  --font-family: "Inconsolata", monospace;

  --font-h1-size: 32px;
  --font-h1-line-height: 40px;
  --font-h1-weight: 500;

  --font-h2-size: 24px;
  --font-h2-line-height: 32px;
  --font-h2-weight: 500;

  --font-h3-size: 16px;
  --font-h3-line-height: 24px;
  --font-h3-weight: 500;

  --font-p-size: 12px;
  --font-p-line-height: 16px;
  --font-p-weight: 500;

  --font-p-alt-size: 12px;
  --font-p-alt-line-height: 16px;
  --font-p-alt-weight: 400;
  --font-p-alt-letter-spacing: 0.12px;

  --font-mobile-p-size: 15px;
  --font-mobile-p-line-height: normal;
  --font-mobile-p-weight: 400;

  --font-form-heading-size: 16px;
  --font-form-heading-line-height: 24px;
  --font-form-heading-weight: 700;

  --content-area-max-width: 1000px;
  --content-area-padding: 10px;
}

/* -----------------------------------------------------------------
   GLOBAL RESET / BASE STYLES
   ----------------------------------------------------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
  background-color: var(--color-white);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -----------------------------------------------------------------
   TYPOGRAPHY
   ----------------------------------------------------------------- */

h1,
.text-h1 {
  font-size: var(--font-h1-size);
  line-height: var(--font-h1-line-height);
  font-weight: var(--font-h1-weight);
  letter-spacing: 0;
  margin: 0;
}

h2,
.text-h2 {
  font-size: var(--font-h2-size);
  line-height: var(--font-h2-line-height);
  font-weight: var(--font-h2-weight);
  letter-spacing: 0;
  margin: 0;
}

h3,
.text-h3 {
  font-size: var(--font-h3-size);
  line-height: var(--font-h3-line-height);
  font-weight: var(--font-h3-weight);
  letter-spacing: 0;
  margin: 0;
}

p,
.text-p {
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  letter-spacing: 0;
  margin: 0;
}

.text-p-alt {
  font-size: var(--font-p-alt-size);
  line-height: var(--font-p-alt-line-height);
  font-weight: var(--font-p-alt-weight);
  letter-spacing: var(--font-p-alt-letter-spacing);
}

.text-mobile-p {
  font-size: var(--font-mobile-p-size);
  line-height: var(--font-mobile-p-line-height);
  font-weight: var(--font-mobile-p-weight);
  letter-spacing: 0;
}

.text-form-heading {
  font-size: var(--font-form-heading-size);
  line-height: var(--font-form-heading-line-height);
  font-weight: var(--font-form-heading-weight);
  margin: 0;
}

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

.text-error {
  color: var(--color-error);
}

/* -----------------------------------------------------------------
   LINKS
   ----------------------------------------------------------------- */

.link {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  cursor: pointer;
}

.link:hover {
  opacity: 0.75;
}

.link:focus-visible {
  outline: 2px solid var(--color-darkest);
  outline-offset: 2px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
}

.text-button:hover {
  text-decoration: underline;
}

.text-button:focus-visible {
  outline: 2px solid var(--color-darkest);
  outline-offset: 2px;
}

.text-button:active {
  opacity: 0.7;
}

/* -----------------------------------------------------------------
   BUTTONS (Primary / Secondary)
   ----------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  text-align: center;
  border-radius: 0;
  transition: opacity 0.15s ease;
}

.button--secondary {
  background-color: var(--color-lightest);
  border: 1px solid var(--color-darkest);
  color: var(--color-darkest);
}

.button--primary {
  background-color: var(--color-dark);
  border: none;
  color: var(--color-white);
}

.button:hover {
  opacity: 0.85;
}

.button:active {
  opacity: 0.7;
}

.button:focus-visible {
  outline: 2px solid var(--color-darkest);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------
   CONTENT AREA
   1000px is an exact maximum width, not a breakpoint. The area fills
   available width up to that cap and stays fluid below it. Dashed
   border is real, visible site UI per approved clarification.
   ----------------------------------------------------------------- */

.content-area {
  max-width: var(--content-area-max-width);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--color-white);
  padding: var(--content-area-padding);
}

/* Dashed border implemented via layered repeating-linear-gradient
   background images rather than the border-style:dashed/border-image
   shorthand, so all four sides render as visible dash segments
   (border-style:dashed alone rendered corners inconsistently; a
   single border-image gradient left the left/right edges solid).
   Line thickness is 2px and dash segments are 8px on/5px off — sized
   up from a 1px/6px pattern because the thinner version rendered as
   near-invisible dots on some displays. */
.content-area__window {
  border: none;
  padding: var(--content-area-padding);
  background-image:
    repeating-linear-gradient(
      to right,
      var(--color-darkest) 0,
      var(--color-darkest) 8px,
      transparent 8px,
      transparent 13px
    ),
    repeating-linear-gradient(
      to right,
      var(--color-darkest) 0,
      var(--color-darkest) 8px,
      transparent 8px,
      transparent 13px
    ),
    repeating-linear-gradient(
      to bottom,
      var(--color-darkest) 0,
      var(--color-darkest) 8px,
      transparent 8px,
      transparent 13px
    ),
    repeating-linear-gradient(
      to bottom,
      var(--color-darkest) 0,
      var(--color-darkest) 8px,
      transparent 8px,
      transparent 13px
    );
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-position:
    top left,
    bottom left,
    top left,
    top right;
  background-size:
    100% 2px,
    100% 2px,
    2px 100%,
    2px 100%;
}

/* -----------------------------------------------------------------
   HEADER
   ----------------------------------------------------------------- */

.site-header {
  width: 100%;
}

.site-header__inner {
  max-width: var(--content-area-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-size: var(--font-h2-size);
  line-height: var(--font-h2-line-height);
  font-weight: var(--font-h2-weight);
  color: var(--color-darkest);
  padding: 10px 0;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__nav-list {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-header__menu-toggle {
  display: none;
  background-color: var(--color-white);
  mix-blend-mode: multiply;
  padding: 8px 0;
}

/* -----------------------------------------------------------------
   NAVIGATION LINKS / SELECTED (CURRENT PAGE) STATE
   ----------------------------------------------------------------- */

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background-color: var(--color-white);
  mix-blend-mode: multiply;
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
  text-align: center;
}

.nav-link.is-selected {
  box-shadow: 0 2px 0 0 var(--color-darkest);
}

.nav-link:hover {
  background-color: var(--color-lightest);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-darkest);
  outline-offset: 2px;
}

.site-header__mobile-menu {
  display: none;
  background-color: var(--color-white);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 2px; /* prevents the last item's selected-state box-shadow indicator from being clipped */
}

.site-header__mobile-divider {
  border-bottom: 1px dashed var(--color-darkest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  padding-right: 12px;
}

/* -----------------------------------------------------------------
   SEGMENTED CONTROL
   ----------------------------------------------------------------- */

.segmented-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-dark);
}

.segment {
  display: inline-flex;
  align-items: flex-start;
  padding: 8px 16px;
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-dark);
  background-color: transparent;
}

.segment.is-selected {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.segment--cta {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 8px 16px;
}

.segment:hover {
  opacity: 0.85;
}

.segment:focus-visible,
.segmented-control:focus-within {
  outline: 2px solid var(--color-darkest);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------- */

.site-footer {
  width: 100%;
}

.site-footer__inner {
  max-width: var(--content-area-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__nav-list {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* Responsive Instagram label swap: full label on desktop, "ig" on
   mobile. Both spans live in the markup; only one is shown at a
   time via display, based on the mobile media query below. */
.footer-instagram-label--short {
  display: none;
}

/* -----------------------------------------------------------------
   FORM CONTROLS — Text input / Text area
   ----------------------------------------------------------------- */

.form-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.form-field__label {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
}

.form-field__label--nowrap {
  white-space: nowrap;
}

.form-field__label-note {
  color: var(--color-light);
}

.form-field__input,
.text-input,
.text-area {
  border: 1px solid var(--color-darkest);
  padding: 8px;
  font-family: var(--font-family);
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
  background-color: var(--color-white);
  width: 100%;
}

.text-area {
  min-height: 128px;
  resize: vertical;
}

.form-field__helper {
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-light);
}

.form-field__input:focus-visible,
.text-input:focus-visible,
.text-area:focus-visible {
  outline: none;
  border-width: 2px;
  padding: 7px;
}

.form-field.has-error .form-field__input,
.form-field.has-error .text-input,
.form-field.has-error .text-area {
  border-color: var(--color-darkest);
}

.form-field__error {
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-error);
}

/* -----------------------------------------------------------------
   RADIO BUTTONS
   ----------------------------------------------------------------- */

.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.radio__control {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--color-darkest);
  background-color: var(--color-lightest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio__control.is-selected::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-dark);
}

.radio__label {
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
}

.radio:focus-within .radio__control,
.radio__input:focus-visible + .radio__control {
  outline: 2px solid var(--color-darkest);
  outline-offset: 2px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 5px;
}

/* -----------------------------------------------------------------
   UPLOAD FIELD / REFERENCE IMAGE ROW
   ----------------------------------------------------------------- */

.upload-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.upload-field__rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.reference-image-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 45px;
  padding: 5px 10px;
  width: 100%;
}

.reference-image-row__left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 0 0;
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
}

.reference-image-row__filename {
  width: 173px;
}

.reference-image-row__upload {
  padding: 8px 16px;
  background-color: var(--color-lightest);
  border: 1px solid var(--color-darkest);
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
}

.reference-image-row__remove {
  padding: 8px 0;
  font-size: var(--font-p-size);
  line-height: var(--font-p-line-height);
  font-weight: var(--font-p-weight);
  color: var(--color-darkest);
}

.reference-image-row__upload:hover,
.reference-image-row__remove:hover {
  opacity: 0.85;
}

.reference-image-row__remove:hover {
  text-decoration: underline;
  opacity: 1;
}

.reference-image-row__upload:focus-visible,
.reference-image-row__remove:focus-visible {
  outline: 2px solid var(--color-darkest);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------
   BOOKING FORM STRUCTURE
   ----------------------------------------------------------------- */

.booking-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  margin-top: 30px;
}

.booking-form__section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.booking-form__fields {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.booking-form__field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

.tattoo-fields {
  display: none;
}

.tattoo-fields.is-active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

/* -----------------------------------------------------------------
   BIO CONTENT (Home page)
   ----------------------------------------------------------------- */

.bio-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
}

.bio-content__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bio-content__or-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bio image container. The supplied asset (pixel-ribbons.png) is used
   completely unmodified as a file. The container and the <img> inside
   it are both sized with percentage-based values (rather than fixed
   pixel values) so that the crop/scale scales proportionally as the
   container's width changes across breakpoints, instead of clipping
   at a fixed pixel size on narrow viewports.

   Source file: 1895x913px, with the artwork occupying a bounding box
   of 1739x766px within it (offset 62px from the left, 77px from the
   top); the rest is surrounding whitespace.

   Container reference size: 345x161px (max), matching the Bio image
   container size recorded from the Figma Components-page pull — the
   closest documented reference value, since the approved
   specification does not lock an exact rendered pixel size.

   img width%  = 1895 / 1739 * 100 = 108.971%
   img height% = 913 / 766 * 100  = 119.191%
   img left%   = -(62 / 1739 * 100) * (1739/1895) ... derived so that,
                 at the 345px reference container width, left = -12.30px
                 => -12.30 / 345 * 100 = -3.565%
   img top%    = derived so that, at the 161px reference container
                 height, top = -16.18px => -16.18 / 161 * 100 = -10.052%
*/
.bio-content__image {
  position: relative;
  width: 100%;
  max-width: 345px;
  aspect-ratio: 345 / 161;
  overflow: hidden;
}

.bio-content__image img {
  position: absolute;
  width: 108.971%;
  height: 119.191%;
  max-width: none;
  top: -10.052%;
  left: -3.565%;
}

/* -----------------------------------------------------------------
   GALLERY / FLASH GRID
   ----------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.gallery-grid__item {
  width: 100%;
  aspect-ratio: 280 / 350;
  overflow: hidden;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -----------------------------------------------------------------
   INFO PAGE — TABLE OF CONTENTS
   ----------------------------------------------------------------- */

.info-toc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  font-size: var(--font-h3-size);
  line-height: var(--font-h3-line-height);
  font-weight: var(--font-h3-weight);
  color: var(--color-darkest);
}

.info-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 19px; /* desktop value; overridden to 20px on mobile below */
  width: 100%;
  margin-top: 20px; /* documented Figma InfoContent root gap value, applied as spacing before each section */
}

.info-section__heading {
  font-size: var(--font-h2-size);
  line-height: var(--font-h2-line-height);
  font-weight: var(--font-h2-weight);
}

.info-section__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
}

/* -----------------------------------------------------------------
   UTILITY CLASSES
   ----------------------------------------------------------------- */

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

/* -----------------------------------------------------------------
   RESPONSIVE RULES
   ----------------------------------------------------------------- */

@media (max-width: 1024px) {
  /* No distinct tablet-specific overrides are documented in the
     approved specification. */
}

@media (max-width: 768px) {
  .site-header__inner,
  .site-footer__inner {
    padding: 10px 16px;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .segment--cta {
    padding: 8px 18px;
  }

  .site-header__mobile-menu.is-open {
    display: flex;
  }

  .site-header.is-nav-open .site-header__inner {
    border-bottom: 1px dashed var(--color-darkest);
  }

  .bio-content {
    gap: 43px;
  }

  .footer-instagram-label--full {
    display: none;
  }

  .footer-instagram-label--short {
    display: inline;
  }

  .info-section {
    gap: 20px; /* exact Figma mobile Info section gap value */
  }

  .info-section__heading {
    font-size: var(--font-h2-size);
    line-height: var(--font-h2-line-height);
    font-weight: var(--font-h2-weight);
  }

  .info-section__body {
    font-size: var(--font-mobile-p-size);
    line-height: var(--font-mobile-p-line-height);
    font-weight: var(--font-mobile-p-weight);
    letter-spacing: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .booking-form__field-row {
    gap: 15px;
  }

  .site-footer__inner {
    flex-wrap: wrap;
  }
}
