/* =========================
   MODERN HEADER / NAVIGATION
   ========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(10, 12, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;

  height: 78px;
  padding: 0 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* LOGO */

.site-logo {
  color: white;
  text-decoration: none;

  display: flex;
  flex-direction: column;

  line-height: 1.1;
}

.logo-main {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-sub {
  margin-top: 5px;

  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.55);
}


/* NAVIGATION */

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;

  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}


/* UNDERLINE HOVER EFFECT */

.main-nav a:not(.nav-button)::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: white;

  transition: width 0.25s ease;
}

.main-nav a:not(.nav-button):hover {
  color: white;
}

.main-nav a:not(.nav-button):hover::after {
  width: 100%;
}


/* ENTER CONTEST BUTTON */

.main-nav .nav-button {
  padding: 12px 20px;

  color: #111;
  background: white;

  border-radius: 3px;

  font-size: 11px;
  letter-spacing: 0.12em;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.main-nav .nav-button:hover {
  background: #e8e8e8;
  color: #111;

  transform: translateY(-2px);
}


/* MOBILE */

@media (max-width: 800px) {

  .nav-container {
    height: auto;
    min-height: 72px;

    padding: 15px 20px;

    flex-direction: column;
    gap: 15px;
  }

  .site-logo {
    text-align: center;
  }

  .main-nav {
    width: 100%;

    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .main-nav .nav-button {
    padding: 10px 15px;
  }
}

body {
  padding-top: 78px;
}







/*adding the title image*/
.hero {
    height: 100vh;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;

    background-image:
        url("assets/hero.png"); /*change the main image*/

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,.15),
            rgba(0,0,0,.70)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 1100px;
    margin: auto;

    padding:
        30vh 40px 0;
}

.hero h1 {
    font-size: clamp(55px, 9vw, 130px);
    line-height: .9;
    letter-spacing: -5px;
}

.hero h1 em {
    font-family: Georgia, serif;
    font-weight: normal;
}






/*Image Scrolling*/
.photo-scroll {
    height: 250vh;
    background: #111;
}

.photo-scroll-sticky {
    height: 100vh;

    position: sticky;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.featured-photo {
    width: 85vw;
    height: 75vh;

    background-image:
        url("assets/hero.png");

    background-size: cover;
    background-position: center;

    position: relative;
}







/*Catigory Images*/
.category {
    min-height: 450px;

    padding: 30px;

    color: white;

    background-size: cover;
    background-position: center;

    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.landscape {
    background-image:
        url("assets/landscape.jpg");
}

.wildlife {
    background-image:
        url("assets/wildlife.jpg");
}

.storms {
    background-image:
        url("assets/storms.jpg");
}

.astro {
    background-image:
        url("assets/astro.jpg");
}

.foliage {
    background-image:
        url("assets/foliage.jpg");
}



/* =========================
   BASIC RULES SECTION
   ========================= */

.rules-section {
  max-width: 1900px;
  margin: 0 auto;
  padding: 110px 40px;
}


/* SECTION INTRO */

.section-heading {
  max-width: 700px;
  margin-bottom: 55px;
}

.section-label {
  display: block;

  margin-bottom: 18px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #777;
}

.section-heading h2 {
  margin: 0 0 20px;

  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;

  color: #111;
}

.section-heading h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.section-heading p {
  max-width: 550px;

  margin: 0;

  font-size: 16px;
  line-height: 1.7;

  color: #666;
}


/* RULE GRID */

.basic-rules {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  border-top: 1px solid #d7d7d7;
  border-left: 1px solid #d7d7d7;
}

.basic-rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* INDIVIDUAL RULE */

.basic-rule {
  min-height: 190px;

  padding: 30px;

  display: flex;
  gap: 25px;
  align-items: flex-start;

  border-right: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;

  background: #f7f6f2;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.basic-rule:hover {
  background: #ffffff;

  transform: translateY(-3px);
}


/* NUMBER */

.rule-number {
  flex-shrink: 0;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.08em;

  color: #777;
}


/* RULE TEXT */

.rule-content h3 {
  margin: 0 0 12px;

  font-size: 21px;
  font-weight: 700;

  color: #111;
}

.rule-content p {
  max-width: 350px;

  margin: 0;

  font-size: 14px;
  line-height: 1.6;

  color: #666;
}


/* FULL RULES BUTTON */

.rules-cta {
  margin-top: 45px;

  display: flex;
  justify-content: center;
}

.full-rules-button {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 35px;

  padding: 17px 22px 17px 26px;

  color: #111;
  text-decoration: none;

  border: 1px solid #111;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  overflow: hidden;

  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.full-rules-button::before {
  content: "";

  position: absolute;
  inset: 0;

  background: #111;

  transform: translateX(-101%);

  transition: transform 0.35s ease;

  z-index: 0;
}

.full-rules-button span {
  position: relative;
  z-index: 1;
}

.full-rules-button:hover {
  color: white;
}

.full-rules-button:hover::before {
  transform: translateX(0);
}








/*Cleaning up margins and shit*/
:root {

    --black: #111111;

    --white: #ffffff;

    --paper: #f4f2ed;

    --gray: #6b6b6b;

    --line: #d7d4cd;

    --serif: Georgia, serif;

    --sans: Arial, sans-serif;

}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background:
        var(--paper);

    color:
        var(--black);

    font-family:
        var(--sans);

}


.section {

    max-width: 2000px;

    margin: auto;

    padding:
        80px 5vw;

}






/* CLEANING UP THE CATIGORIES SECTION*/
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.category-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background-size: cover;
    background-position: center;
}

.category-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.05) 65%
  );

  pointer-events: none;
}

.category-card-content {
  position: relative;
  z-index: 2;

  padding: 24px;
}

.category-card h3 {
  margin: 0 0 8px;

  color: white;

  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
}

.category-card p {
  margin: 0;

  color: rgba(255, 255, 255, 0.9);

  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 450px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

html {
    scroll-behavior: smooth;
}

#submit {
    scroll-margin-top: 100px;
}









/*Submission form Cleanup*/
form {

    max-width:
        900px;

    margin-top:
        50px;

}


label {

    display: block;

    margin-bottom:
        25px;

    font-size:
        12px;

    text-transform:
        uppercase;

    letter-spacing:
        .1em;

}


input,
select,
textarea {

    width: 100%;

    padding:
        16px;

    margin-top:
        8px;

    border:
        1px solid #bbb;

    background:
        #faf9f6;

}


button {

    padding:
        17px 25px;

    background:
        #111;

    color:
        white;

    border:
        none;

    cursor:
        pointer;

    text-transform:
        uppercase;

    letter-spacing:
        .1em;

}










/*Fancy Hover effects on Catagories*/
.category {

    transition:
        transform .5s ease;

}


.category:hover {

    transform:
        scale(.985);

}


.category::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.15);

    transition:
        background .4s ease;

}


.category:hover::before {

    background:
        rgba(0,0,0,.4);

}

.button,
.enter-button {

    transition:
        opacity .3s ease;

}


.button:hover,
.enter-button:hover {

    opacity:
        .65;

}








/*RULES STYLING*/
.rules-hero {

    min-height: 70vh;

    background:
        #171717;

    color:
        white;

    display:
        flex;

    align-items:
        flex-end;

    padding:
        0 7vw 100px;

}


.rules-hero-content {

    max-width:
        1000px;

}


.rules-hero h1 {

    font-size:
        clamp(65px, 10vw, 140px);

    line-height:
        .85;

    letter-spacing:
        -.06em;

    margin:
        20px 0;

}


.rules-hero h1 em {

    font-family:
        Georgia, serif;

    font-weight:
        normal;

}


.rules-hero p:last-child {

    max-width:
        520px;

    color:
        #bbb;

    font-size:
        18px;

}



.full-rules {

    max-width:
        2050px;

    margin:
        auto;

    padding:
        100px 5vw;

}


.rules-intro {

    max-width:
        750px;

    margin-bottom:
        100px;

}


.rules-intro h2 {

    font-size:
        clamp(45px, 6vw, 80px);

    line-height:
        .9;

    letter-spacing:
        -.05em;

    margin:
        20px 0 30px;

}


.rules-intro h2 em {

    font-family:
        Georgia, serif;

    font-weight:
        normal;

}


.rules-intro > p:last-child {

    color:
        #666;

    font-size:
        18px;

}



.full-rule {

    display:
        grid;

    grid-template-columns:
        90px 1fr;

    gap:
        35px;

    border-top:
        1px solid #d5d2ca;

    padding:
        45px 0;

}


.full-rule:last-child {

    border-bottom:
        1px solid #d5d2ca;

}


.rule-number {

    color:
        #888;

    font-size:
        11px;

    letter-spacing:
        .12em;

}


.full-rule h3 {

    font-size:
        28px;

    margin:
        0 0 18px;

}


.full-rule p {

    max-width:
        750px;

    color:
        #606060;

    font-size:
        16px;

    line-height:
        1.7;

}


.full-rule ul {

    padding-left:
        20px;

    color:
        #606060;

    line-height:
        2;

}



.rules-end {

    background:
        #dedbd4;

    text-align:
        center;

    padding:
        130px 30px;

}


.rules-end p {

    text-transform:
        uppercase;

    letter-spacing:
        .15em;

    font-size:
        11px;

}


.rules-end h2 {

    font-size:
        clamp(50px, 7vw, 95px);

    line-height:
        .9;

    letter-spacing:
        -.06em;

    margin:
        25px 0 40px;

}


.rules-end h2 em {

    font-family:
        Georgia, serif;

    font-weight:
        normal;

}






/*MOBILE RULES PAGE*/


@media (max-width: 700px) {


    .rules-hero {

        min-height:
            600px;

        padding:
            0 25px 70px;

    }


    .full-rules {

        padding:
            90px 25px;

    }


    .rules-intro {

        margin-bottom:
            60px;

    }


    .full-rule {

        grid-template-columns:
            45px 1fr;

        gap:
            15px;

        padding:
            32px 0;

    }


    .full-rule h3 {

        font-size:
            23px;

    }


    .full-rule p {

        font-size:
            15px;

    }


}
.upload-honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
textarea { width:100%; min-height:100px; }

/* Responsive layout and accessible controls */
img { display: block; max-width: 100%; height: auto; }
.section > *, .category-grid > *, .basic-rules > *, .full-rule > * { min-width: 0; }
section[id] { scroll-margin-top: 100px; }
p { line-height: 1.65; }
.hero { height: auto; min-height: min(900px, 90svh); display: flex; align-items: center; }
.hero-content { width: 100%; padding: 80px 5vw; }
.hero h1 { margin: 20px 0 28px; font-size: clamp(40px, 7.8vw, 112px); line-height: 1; letter-spacing: -.045em; overflow-wrap: break-word; }
.hero-content > p { max-width: 560px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 15px 24px; background: #fff; color: #111; text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 4px; }
.hero .button { margin-top: 16px; }
.category { min-height: 340px; padding: 24px; isolation: isolate; }
.category::before { background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.8)); z-index: -1; }
.category h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; }
.category p { margin: 0; font-size: 15px; }
.judge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.judge img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.judge p { font-weight: 700; }
.submit > .section-number { width: 100%; max-width: 900px; margin: 0 auto; }
.submit h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
form { width: 100%; margin-top: 28px; }
form > p { font-size: 15px; color: #555; }
input, select, textarea { min-width: 0; max-width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: #111; border-radius: 4px; letter-spacing: normal; }
textarea { resize: vertical; }
input[type="file"] { padding: 12px; font-size: 14px; }
input[type="file"]::file-selector-button { padding: 10px 12px; margin-right: 10px; border: 0; border-radius: 3px; background: #e4e1d9; color: #111; font: inherit; }
label.checkbox { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 14px; text-transform: none; letter-spacing: normal; }
input[type="checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: #111; }
button { min-height: 48px; border-radius: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b06a24; outline-offset: 4px; }
@media (max-width: 1100px) {
  .nav-container { padding: 0 24px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 11px; }
  .basic-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  body { padding-top: 0; }
  .site-header { position: relative; background: #111418; }
  .nav-container { height: auto; min-height: 0; padding: 20px; gap: 20px; }
  .logo-main { font-size: 22px; }
  .logo-sub { font-size: 9px; letter-spacing: .12em; }
  .main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .main-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 10px; letter-spacing: .035em; }
  .main-nav .nav-button { grid-column: 1 / -1; margin-top: 4px; font-size: 12px; }
  .main-nav a:not(.nav-button)::after { display: none; }
  section[id], #submit { scroll-margin-top: 20px; }
  .section, .rules-section { padding: 56px 24px; }
  .hero { min-height: 540px; }
  .hero-content { padding: 64px 24px; }
  .hero h1 { font-size: clamp(40px, 8vw, 64px); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .category { min-height: 300px; }
  .section-heading { margin-bottom: 28px; }
  .basic-rule { padding: 24px; min-height: 0; }
  .judge-grid { gap: 16px; }
  .rules-hero { min-height: 360px; padding: 64px 24px; align-items: center; }
  .rules-hero h1 { font-size: clamp(52px, 10vw, 80px); line-height: 1; }
  .full-rules { padding: 48px 24px; }
  .full-rule { grid-template-columns: 32px minmax(0, 1fr); gap: 16px; }
  .rules-end { padding: 64px 24px; }
  .rules-end h2 { font-size: clamp(34px, 7vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
}
@media (max-width: 480px) {
  .section, .rules-section { padding: 44px 20px; }
  .nav-container { padding: 18px 16px; gap: 12px; }
  .hero { min-height: 480px; }
  .hero-content { padding: 48px 20px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 50px); }
  .hero .button { width: 100%; }
  .category-grid, .basic-rules, .judge-grid { grid-template-columns: minmax(0, 1fr); }
  .category { min-height: 280px; padding: 24px; }
  .judge-grid { gap: 28px; }
  .judge img { aspect-ratio: 1; }
  .rule-content p { font-size: 15px; }
  .rules-cta { margin-top: 28px; }
  form button[type="submit"] { width: 100%; }
  .full-rules { padding: 32px 20px; }
  .full-rule { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0; }
  .full-rule h3 { font-size: 24px; }
  .full-rule p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Keep mobile viewports contained, including Safari's native form controls. */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Fallback for browsers without overflow: clip. */
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
.nav-container, .main-nav, .hero-content, form, .judge {
  min-width: 0;
  max-width: 100%;
}
input, select, textarea {
  min-inline-size: 0;
  max-inline-size: 100%;
}
input[type="date"] { display: block; width: 100%; }
input::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.hero-content, .category, .rule-content, .full-rule, form > p {
  overflow-wrap: anywhere;
}
/* Hide the spam trap locally instead of positioning it 10,000px off-screen. */
form { position: relative; }
.upload-honeypot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
