# Architecture - Cedar Studio Website

This is a fictional sample. Confirm hosting and requirements first.

## Implementation choice

Use static HTML, one shared CSS file and only the JavaScript the agreed interaction needs. The sample has four content pages, no form and no dynamic data, so it does not require a framework, server-side application or database.

Do not silently replace an existing project's stack with this example. Inspect the existing implementation, then adapt this file and record the decision.

## Proposed repository

```text
project/
  README.md                  Project-specific setup and deployment notes
  docs/                      The eight planning documents in this kit
  site/                      The only directory deployed publicly
    index.html
    services/index.html
    about/index.html
    contact/index.html
    404.html
    assets/
      css/site.css
      js/site.js             Create only if required
      img/                   Approved, optimized images and sharing image
    robots.txt
    sitemap.xml
```

## Repeated parts

- Header: brand identity, four page links and current-page state.
- Footer: description, navigation and contact address.
- Page shell: metadata, skip link, main region and consistent content width.
- Service card and CTA: reuse the same markup pattern and CSS classes.
- For this small static sample, shared header/footer markup appears in each HTML file. Update all pages together and check consistency. If page count or editing frequency grows, record a decision to introduce templates before duplicating further.

## Data and navigation flow

```text
Visitor -> static host -> requested HTML + shared CSS + approved images
Page link -> another local route
Email CTA -> visitor's email application
```

There is no contact submission to store or deliver. An email link opening successfully does not prove that an email was sent. Keep the address visible for visitors without a configured email application.

## Hosting requirements

- Production domain: [VERIFIED DOMAIN]. `https://example.com` is only a placeholder.
- Hosting provider and public directory: [PROVIDER] and `site/`.
- Confirm HTTPS, directory-index support and canonical trailing-slash behavior.
- Configure a custom 404 document that preserves HTTP 404 rather than redirecting to a successful page.
- Redirect any retired URLs only when an appropriate replacement exists; otherwise return 404.
- Keep `docs/`, credentials, local files and backups outside the public directory.

## Integrations

None are enabled in this sample. Do not add analytics, cookies, chat, booking or a form backend without an approved requirement.

If an integration is approved, record its purpose, owner, data collected, data destination, failure behavior and maintenance needs. Keep credentials in the deployment platform's protected configuration, never in public HTML, JavaScript or Markdown downloads.

## Local development and verification

- Serve `site/` with a local static web server that supports directory index files.
- Check each route directly, not only by clicking from Home.
- Test keyboard navigation, narrow screens, missing pages and external destinations.
- Verify the host's HTTPS, redirects and 404 behavior on a preview deployment; a simple local server may handle them differently.
- Document the actual local and deployment commands in the project README after choosing the available environment.

## Release and rollback

1. Save the last working version and record the release identifier.
2. Review the local preview and the checklist evidence with the owner.
3. Get launch approval, then deploy only `site/`.
4. Check public routes, metadata, assets, email links and the 404 response.
5. If a critical check fails, restore the previous release and record the issue.

Changes that introduce stored data, authentication, payments or server-side code need a revised architecture and scope review before implementation.

Copyright © Vipul Tiwari. https://vipultiwari.com/
